Printing a DOCX

Technical support for Spire.Doc

Moderator: iceblue support

Printing a DOCX

Postby mikeranscombe » Tue Jul 25, 2017 3:19 pm

Hi,

We are using the full version of Spire.DOC to manipulate and then print a Word document created from a DOTX. If we look at the resulting document in Word it is fine, but when printed from Spire.DOC on the application server (which does not have Word installed) the formatting is all skewed; for example headers and footers are wrong and any text box are printed in line in the document rather than in their proper places. Here is the code we're using:

Code: Select all
            Document doc = new Document();
            doc.LoadFromFile(docpath);
            PrintDocument printDoc = doc.PrintDocument;
           
            printDoc.PrintController = new StandardPrintController();
            printDoc.DocumentName = string.Format("WAL_DOC_{0}", id);
            printDoc.DocumentName = printDoc.DocumentName + username;
            printDoc.Print();


Is there something wrong with this approach?

Regards,
Mike
mikeranscombe
 
Posts: 1
Joined: Fri May 13, 2016 9:03 am

Re: Printing a DOCX

Postby Jane.Bai » Wed Jul 26, 2017 1:36 am

Hello,

Thanks for your inquiry.
To help us with a better investigation, could you please share your sample document as well as the server environment?
You can send to us via email(support@e-iceblue.com).

Sincerely,
Jane
E-iceblue support team
User avatar
Jane.Bai
 
Posts: 605
Joined: Tue Nov 29, 2016 1:47 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests