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.

Tue Apr 09, 2013 9:45 am

Dear Johan,

Thanks for your understanding.
Once any update on the performance-improvement, we will inform you immediately.
If you have other issues, please also tell us.
Have a nice day!

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Apr 15, 2013 10:03 am

Hi Amy,

I have another issue when i'm saving a document to pdf:

I add a footer to the document and after that, set the font of the footer-textranges in the footer. All textranges are set correctly except one: footerParagraphRight.AppendField("number of pages", FieldType.FieldNumPages);

This results in the following pdf:
capture_04152013_115852.jpg


The code to insert the footer:
Code: Select all
private static void InsertFooter(Section section)
        {
            HeaderFooter footer = section.HeadersFooters.Footer;
            List<TextRange> textRanges = new List<TextRange>();

            Table t = footer.AddTable(false);
            TableRow tr1 = t.AddRow(3);
            TableRow tr2 = t.AddRow(3);

            float f = (section.PageSetup.ClientWidth)/3;
            tr1.Cells[0].Width = f;
            tr1.Cells[1].Width = f;
            tr1.Cells[2].Width = f;
            tr2.Cells[0].Width = f;
            tr2.Cells[1].Width = f;
            tr2.Cells[2].Width = f;

            tr1.RowFormat.Borders.BorderType = BorderStyle.None;
            tr2.RowFormat.Borders.Left.BorderType = BorderStyle.None;
            tr2.RowFormat.Borders.Right.BorderType = BorderStyle.None;
            tr2.RowFormat.Borders.Bottom.BorderType = BorderStyle.None;
            tr2.RowFormat.Borders.Top.BorderType = BorderStyle.Single;

            //insert datetime in footer
            Paragraph footerParagraphLeft = tr2.Cells[0].AddParagraph();
            footerParagraphLeft.Format.HorizontalAlignment = HorizontalAlignment.Left;
            textRanges.Add(footerParagraphLeft.AppendText(DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss")));


            //insert pagenumber in footer
            Paragraph footerParagraphRight = tr2.Cells[2].AddParagraph();
            textRanges.Add(footerParagraphRight.AppendField("page number", FieldType.FieldPage));
            textRanges.Add(footerParagraphRight.AppendText(" van "));
            textRanges.Add(footerParagraphRight.AppendField("number of pages", FieldType.FieldNumPages));
            footerParagraphRight.Format.HorizontalAlignment = HorizontalAlignment.Right;

            foreach (TextRange range in textRanges)
            {
                range.CharacterFormat.Font = footerFont;
            }

            Paragraph footerCenter = tr2.Cells[1].AddParagraph();
            Image image = Image.FromFile(@"..\..\xlmap.png");
            DocPicture footerPicture = footerCenter.AppendPicture(image);
            footerPicture.TextWrappingStyle = TextWrappingStyle.InFrontOfText;

            footerPicture.HorizontalPosition = (section.PageSetup.ClientWidth/2) - (image.Width/2);
            footerPicture.VerticalOrigin = VerticalOrigin.Paragraph;
            footerPicture.VerticalAlignment = ShapeVerticalAlignment.Top;
            footerPicture.WidthScale = 50;
            footerPicture.HeightScale = 50;
        }



Can you try to reproduce this?

Thanks in advance,
Johan

jslots
 
Posts: 48
Joined: Mon Jul 09, 2012 12:03 pm

Tue Apr 16, 2013 2:22 am

Dear Johan,

Thanks for your inquiry.
I have reproduced this issue. Sorry for the inconvenience. I have posted it to our dev team. My dev colleague is working on it.
Once this issue has been solved, we will inform you immediately.
Have any other issues, please feel free to contact us.

Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Thu Apr 25, 2013 9:38 am

Dear Johan,

Thanks for your waiting.
This issue has been solved. Please download and test spire.office_hotfix_2.5.8 (http://www.e-iceblue.com/downloads/hot_fix/spire.office_hotfix_2.5.8.zip).
If you have any issues, please feel free to contact us.

Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue Apr 30, 2013 7:05 am

Dear Johan,

Does spire.office_hotfix_2.5.8 solve your issue?
Please give us a feedback message at your early convenience. Thanks!
If you have other any issues, please feel free to contact us.

Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue May 07, 2013 6:59 am

Hi Amy,

I'm sorry for the waiting-time, but the hotfix did fix my problem. Thank you.

Johan

jslots
 
Posts: 48
Joined: Mon Jul 09, 2012 12:03 pm

Thu Aug 01, 2013 11:52 am

amy.zhao wrote:Dear Johan,

Thanks for your understanding.
Once any update on the performance-improvement, we will inform you immediately.
If you have other issues, please also tell us.
Have a nice day!

Best Regards,
Amy
E-iceblue support team


Hi Amy,

Is there any progression on the performace-improvement when saving a document as pdf?

Johan

jslots
 
Posts: 48
Joined: Mon Jul 09, 2012 12:03 pm

Fri Aug 02, 2013 2:01 am

Dear Johan,

Thanks for your inquiry.
Sorry that the performance has not got a conspicuous improvement at present.
If we have any progression in the future, we will tell you.

Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc