Hi, our company have been using your product for a few years, and in nearly every case, we have been able to get around any issues we’ve encounted, until this one at least.
When we use the following code
Document doc = new Document("\\S-218090-100222100034-CL21P-1.docx");
doc.Print("\\HP LaserJet Reception 4000 B&W");
we find that any content controls that contain a “\r\n” displays incorrectly when printing and when saving as pdf (passing in PDF printer rather than the actaul printer)
When printing direct to the printer, the address record will look like this in the original document just as it should. (Viewed in Word 2007)
123 ABC Street
Adelaide SA 5000
but printing via code it prints like this
123 ABC Street
SA 5000
and in PDF will convert to
123 ABC Street
SA 5000
Adelaide
When printed from Word 2007, the address displayes as it’s shown in the document.
Any suggestions would be great as this is a major issue for our customers that we at this stage, haven’t been able to resolve.
Thanks for your inquiry. Could you please attach your input document here for testing? I will check the problem on my side and provide you more information.
Thank you for additional information. I cannot reproduce the problem on my side using the latest version of Aspose.Words. I use the following code for testing:
Thank you for additional information. But I still cannot reproduce the problem on my side. Could you please convert your document to PDF using Aspose.Words and attach here?
We’ve done more internal investigation, and found that if the document is opened in word and then saved, then printed in this manner, then it will print fine.
In this scenario however, we are using Aspose.Words to generate the doc file and then to also print the file, so at no time has this document been opened by word.
I’m unsure if you opened and saved the file or just saved the file directly, are you able to check this difference?
We’re certain that this is the difference between your testing and ours.
It looks as though I may have attached a document that I had opened in word, which may account for why you didn’t get the issue. I’m attaching the same document again, that has not been opened in word at all so you’ll need to use the newly attached document for your testing.
Thank you for additional information. I managed to reproduce the problem with printing. Could you please provide me the code which you use for generating this document? I will check the issue and provide you more information.
I haven’t heard back after I sent you the code (sent it directly to your e-mail). Just thought I’d check to see if any progress has been made as to our issue?
Thanks for your patience, and sorry for delayed answer. 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.