Print To Pdf 追蹤

0
Avatar
Legacy Poster

I am using below code to print:

 

BarTender.Application btApp;

BarTender.Format btFormat;

BarTender.Database btDb;

btApp = new BarTender.Application();

btFormat = btApp.Formats.Open(@"c:\Label_RNSY_old.btw", false, "");

 

BarTender.Messages btMsgs;

 

btFormat.SetNamedSubStringValue("Store", "002");

 

btFormat.Print("Test.pdf", true, -1, out btMsgs);

 

I don't see any file getting created. If I use the same format file from Bartender tool UI works fine.

 

Am I missing anything ? Please help ? Also how do I set location of pdf to be printed. I am using Bartender9.4 dll.

1 意見

0
Avatar
Shotaro Ito
評論操作 永久連結

Are you using Adobe Acrobat as printer?

Make sure the driver doesn't show any dialog.

 

Also, show bartender while printing to see any error happens.

btApp.VisibleWindows = btAll

 

For acrobat setting, check adobe info like below.

http://helpx.adobe.com/acrobat/using/using-pdf-printer.html

登入寫評論。