Aspose.Words.Document 14.11.0.0

I have a issue printing an Aspose word document after adding barcode images to a template that created by MS Word.

The aspose word document was created and saved without problems; however, my printing app didn’t print barcode images directly.



If I opened the saved document in MS Word, it prints the barcode images perfectly. But my goal is not to use MS Office to print the barcode. I hope you help me.



Mikan2



attachement1: testA.docx is the one created and saved by Aspose.Words.Document



attachement2: a template file

Hi there,

Thanks for your inquiry. The testA.docx has zero kb file size. Could you please attach this file again?

Please

create a standalone/runnable simple application (for example a Console
Application Project
) that demonstrates the code (Aspose.Words code) you used to generate
your output document and print it.

As soon as you get these pieces of information to
us we’ll start our investigation into your issue.

[edited by: mikan2 at 9:37 AM (GMT -6) on Tue, Oct 13 2015]

Hi,



I re-attached the file testA1.docx, but it didn’t let me open after uploaded. If you right click on the file name to save in your directory, it seemed to allow you to open it.



Here is the code snippet to create and print the aspose word with barcode.



private void CreateLabelsAspose(string site, string id)

{

TemplateDoc = new Aspose.Words.Document(@“C:\Temp\BLtemplate.docx”);

Aspose.Words.Document oDoc = TemplateDoc.Clone();

oDoc.Save(@“C:\Temp\testA.docx”);

//add barcode and text to template

GenerateLabelsAspose("id, “test”, ref oDoc);

//save doc after adding barcode

oDoc.Save(@“C:\Temp\testA.docx”);

System.Threading.Thread.Sleep(1000);



PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();

//print label with barcode

oDoc.Print(ps, “test.docx”);



}



[edited by: mikan2 at 9:29 AM (GMT -6) on Tue, Oct 13 2015]





[edited by: mikan2 at 9:24 AM (GMT -6) on Tue, Oct 13 2015]





Hi there,

Thanks for your inquiry. I have printed the shared testA.docx file using Aspose.Words for .NET 15.9.0 and have not found any issue with output. I suggest you please use Aspose.Words for .NET 15.9.0. Hope this helps you.

If you still face problem, please share following detail for further investigations.

  • Unfortunately, the code of GenerateLabelsAspose method is missing. Please

    create a standalone/runnable simple application (for example a Console
    Application Project
    ) that demonstrates the code (Aspose.Words code) you used to generate
    your output document and print it.

  • Please save the output document to Pdf and share that Pdf here for our reference.