Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Aug 21, 2014 4:27 am

We are creating a document with a rather large table 16 or more columns, any number of rows. When we try and export with FileFormat.PDF is hangs. With smaller tables this is no problem. It works when exporting to HTML, just the PDF option is a problem.

will.marriott
 
Posts: 27
Joined: Thu Oct 24, 2013 9:47 pm

Thu Aug 21, 2014 4:36 am

Hello,

Thank for your feedback.
Please attach your document here or send it to our Email(support@e-iceblue.com) for testing.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Aug 28, 2014 10:27 pm

It's incredibly easy to replicate.

Code: Select all
var document = new Document();
var section = document.AddSection();
section.PageSetup.Orientation = PageOrientation.Landscape;

var table = section.AddTable(true);

// rows
for (var i = 0; i < 10; i++)
{
   var row = table.AddRow(60);
   
   // columns
   for (var j = 0; j < 60; j++)
   {
      var cell = row.Cells[j];
      var paragraph = cell.AddParagraph();
      paragraph.AppendText(String.Format("[{0}, {1}]", i, j));
   }
}

document.SaveToFile(String.Format("C:\\temp\\{0:yyyyMMddHHmmss}.pdf", DateTime.Now), Spire.Doc.FileFormat.PDF);

will.marriott
 
Posts: 27
Joined: Thu Oct 24, 2013 9:47 pm

Fri Aug 29, 2014 1:58 am

Hello,

Thanks for your response.
We have reproduced the issue, which has been transferred to our Dev team, once there is any update, we will let you know.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri Aug 29, 2014 6:06 am

Hi Gary,

I'm wondering if we should be using a workbook instead of a document and then convert that into a PDF? Does the XLS to PDF handle large tables better? Does it pagination and display data better?


Will

will.marriott
 
Posts: 27
Joined: Thu Oct 24, 2013 9:47 pm

Fri Aug 29, 2014 6:43 am

Hello,

It is totally feasible that you save data to workbook, then convert it to pdf. It might be better than document.

If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Sep 01, 2014 6:07 am

Hi Gary, the Spire libraries we are using don't allow me to convert to PDF from a workbook. Do I need to upgrade or just download the correct libraries?

will.marriott
 
Posts: 27
Joined: Thu Oct 24, 2013 9:47 pm

Mon Sep 01, 2014 6:53 am

Hello,

Only Spire.XLS Pro version supports to convert workbook to PDF, please download the newest hotfix(Spire.XLS Pack Hotfix Version:7.5.12).
If you need to use the Spire.Doc and Spire.Xls together, you need to use the Spire.Office.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Sep 22, 2014 6:25 am

Hello,

The issue about document to pdf hangs has been resolved, and the newest hotfix of Spire.Doc has been released, you could download Spire.Doc Pack(hot fix) Version:5.2.40 and try it.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Sep 24, 2014 9:36 am

Hello,

Have you tested the document to Pdf hangs issue via Spire.Doc Pack(hot fix) Version:5.2.40? Has it been resolved? Could you please give us some feedback if convenience?
If there are any questions, welcome to get it back to us.
Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.Doc