Print To Pdf 追蹤

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 意見

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.