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 Feb 25, 2016 5:00 pm

Hi,

I am having some bizarre printing issues. What is happening is that the document has footers using page numbers using Page {PAGE\*MERGEFORMAT} of 8 for example. But what is odd is that when I replicate the issue my client is getting I don't get the issue, but i connected to their work station and it happened each time.

Also when saving the document and emailing it works fine but when going straight to printer the footer goes completely wrong on the 2nd, 3rd, 4th page etc . The first page is ok. The client is printing the document in USA so im not sure if there some formatting difference between UK and USA.

Any ideas as to why this would happen?

I have attached two demo docs. One is a demo of how the doc is set up and the other of what is happening when it goes to print.

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Fri Feb 26, 2016 6:51 am

Hi,

Thanks for your posting.
I tested enclosed file on our side(china) but also can not reproduce the issue.
Is version your client used is Spire.Office Version 2.13(the latest version)?
Please tell us what printer your client used and their work station. Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Mon Feb 29, 2016 9:16 am

Hi Amy,

thank you for your reply.

what information on their workstation do you need?

I think this is more an issue of their margins or/and printer as the USA paper sizes are different to the uk. Do you think this issue is more to do with that than spire?

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Mon Feb 29, 2016 11:19 am

Hi Amy,

The printer they are using is Cannon 6075i Image Runner Advance.

They are not on the latest version of spire.

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Mon Feb 29, 2016 12:22 pm

Hi Amy,

Just another question, if the document is created to USA A4 paper size and the margins are set to the USA size, if this document is then used in the UK will spire automatically be able to convert this document to a UK doc and print? as i think this is were the issue could be

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Tue Mar 01, 2016 3:58 am

Hi,

Thanks for your further information.
About your last post, paper size can not been changed no matter in which environment.
Please ensure your client's computer installed the corresponding fonts in your word documents.
If the corresponding fonts have been installed and the issue still exists,
Please share the following information.
1)your testing code about printing.
2)dll version you are using
2)your client's system environment, for example, Windows 7 Enterprise Edition SP1 x64, Regional and Language Options.
3)the images which are converted from your word document using doc.SaveToImages() method on your UK side and USA side.

Thank you.
Best Regards,
Amy
E-iceblue support team
User avatar

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

Tue Mar 01, 2016 5:18 pm

hi,

my code to print using spire is:

Dim doc As New Spire.Doc.Document
doc.LoadFromFile(FullDocumentName)

If (Len(OfficeCopyText) > 0) Then
Dim tr As New TextRange(doc)
tr.CharacterFormat.Bold = True
tr.CharacterFormat.FontSize = 18
tr.CharacterFormat.TextColor = Color.Gray
tr.CharacterFormat.Italic = True
tr.Text = OfficeCopyText + " " + vbCrLf

Dim section As Section = doc.Sections(0)
Dim para As Paragraph = section.Paragraphs(0)
Dim body As Body = para.OwnerTextBody
Dim addPar As New Paragraph(doc)
addPar.ChildObjects.Add(tr)
addPar.Format.HorizontalAlignment = Spire.Doc.Documents.HorizontalAlignment.Right
Dim index As Integer = body.ChildObjects.IndexOf(para)
body.ChildObjects.Insert(index, addPar)
doc.SaveToFile(FullDocumentName)
End If

Dim printDialog As New PrintDialog
doc.PrintDialog = printDialog
doc.PrintDocument.Print()
doc.Close()

The version of spire they have is 5.3.75.4041.

I am waiting on the information of their system environment.

Can you email me directly as i don't all this info on the open forum.

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Wed Mar 02, 2016 1:50 am

Hi,

I tested your code with old version( 5.3.75.4040) you were using and the issue indeed existed. Please use the latest version of Spire.Office, Spire.Office Platinum Version:2.13.
My e-mail address is amy.zhao@e-iceblue.com.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Wed Mar 02, 2016 9:22 am

hi amy,

thanks for that! the version number we will now have is 5.5.216.4041, so i will create a new build and give them that.

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Mon Mar 07, 2016 6:38 am

Hello,

Has the issue get resolved?

Thanks,
Gary
E-iceblue support team
User avatar

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

Mon Mar 07, 2016 9:03 am

hi,

i wont know for a few weeks yet as haven't delivered the new version of our product.

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Thu Apr 21, 2016 8:37 am

Hi

i still have an issue, i have emailed amy directly but have not had a reply. gary can you email me directly so i can email you the information as i dont want to post it on here.

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Thu Apr 21, 2016 8:54 am

Hi,

I have sent you a reply via e-mail, please check it.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Return to Spire.Doc

cron