Print To Pdf Follow

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.


Shotaro Ito
Comment actions Permalink

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.

Please sign in to leave a comment.