We are using the following snippet of code to print labels to PDF, using the Native PDF Export:
btFormat.Printer = "PDF";
btFormat.PrinterFile = pdfFullPath;
PrintSetup btPrintSetup = btFormat.PrintSetup;
PrintMethod btPrintMethod = btPrintSetup.PrintMethod;
btPrintMethod.TrueTypeText = BtTextPrintMethod.btTextRasterGraphics;
BtPrintResult brPrintResult = btFormat.Print(printParameters.JobName, true, -1, out messages);
This works fine, and we get multiple labels in the PDF output. However, the PDF does not have any borders around the labels.
I have been going through the documentation, but only found a reference to enabling borders as part of ExportPrintPreviewToImage.
In Bartender Designer 2022 R4, in the Page Setup -> Shape, we see the option "Print Borders", which can be enabled and tweaked. I have looked at the PageSetup object, but have not found a way to do this. So, how can we enable the printing of borders in code, when using the Native PDF Export?
Vous devez vous connecter pour laisser un commentaire.