Print with Document.Print is completely different than using Word

Hi,

please take a look at the attached word file. If I’m using Microsoft Word to print that file, the result is completely different than when I use Document.Print().

Could you please tell me what i’ve to do to get the same results (Microsoft Word result are the correct one :wink:

Thanks, Stefan

Hello

Thanks for your request. The problem occurs because you are using floating frame in your document. Currently, Aspose.Words does not support floating object positioning during rendering. The only way to work the problem around, I can suggest you at the moment, is refactoring your document to avoid using floating frames.

Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.

Best regards,

Hi again,

I found out, that your printing system doesn’t support “frames” (Positionsrahmen in german). Everything inside a frame is printed in the top left cornor. Am I right or am I doing something wrong?

If tried an additional one without these frames (see new attachment). The problem here is, that the result is printed in protrait, instead of landscape. Could you please how I can resolve this behaviour.

As you can imagine this problem is urgent.

Thanks, Stefan

Hi

Thank you for additional information. For example you can try using table to achieve what you need. Please see the attached document.

Best regards,

Hi,

thanks for the information. Unfortunately this doesn’t solve the second problem with printing landscape. We use the word file to print envelopes. When printing this file with Aspose.Words, the address is printed with the wrong orientation. If we print with word, the orientation is correct. Do you also have a solution for this problem?

Thanks, Stefan

Hi

Thanks for your request. I cannot reproduce the problem with orientation on my side using the latest version of Aspose.Words (9.4.0). I use the following code for testing:

Document doc = new Document(“tmpB0EC.doc”);

PrinterSettings printerSettings = new PrinterSettings();

printerSettings.PrinterName = @“hp LaserJet 1010 Series Driver”;

doc.Print(printerSettings);

You can download the latest version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

If after update the problem still exists, could you please also provide me information about your environment (OS, .NET framework etc).

Best regards,

Hi,

attached the resulted prints (one from MS Word, one from Aspose.Words). As you can see the the print with Aspose.Words is wrong.

I’m using Win7, Framework 3.5, Aspose.Words 9.4.0, MS Word 2010.

Maybe a helpful hint:
With PaperSize A4 and landscape the result from MS Word and Aspose.Worlds are the same. If chancing the PaperSize to C5 in MS-Word, the results are different. I found out that there is no PaperSize C5 in Aspose.Words, it automatically changes to Custom.

Thanks, Stefan

Hi

Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.

Best regards,

Hi,

thanks for letting me know. In the meantime do you have a workaround for me, as this is very urgent or is there a timeframe when the fix will be published?

Thanks, Stefan

Hi

Thanks for your request. Unfortunately, I cannot suggest you any way to work this problem around at the moment. You should just wait for the fix of the original issue.

Please expect a reply before next hotfix (within 4-5 weeks). We might just fix the problem or provide you more information.

Best regards,

The issues you have found earlier (filed as 18718) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(28)

We are happy to tell you that a very cool and important feature (filed as 7180) is included in the new version of Aspose.Words. Text wrapping around images and shapes when rendering Microsoft Word documents to PDF, XPS and printing is now supported. You can download the latest version from here.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(61)

Hi,

I have installed the latest version of Aspose.Total (5.3), but the problem is still there.
If I want to print a document with a custom page size it’s always printed out on A4.

When I create the document I have the correct page size. Afterwards I call the PrintDialog to select the printer and call the document.Print(PrinterSettings) method. And here I have the problem. In the PrinterSettings.DefaultPageSettings is A4 defined!

Am I calling something wrong? Or how can I pass the page settings from the document to the DefaultPageSettings of the PrinterSettings?

Thanks,
Stefan

Hi Stefan,

Thanks for your request. Could you please make sure that you are using the latest version of Aspose.Words in your application. To check version of the library, right click on the dll, select Properties from the context menu, then select Version tab. You will see File version.

You can download the latest version of Aspose.Words from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,