Hello! Below C/AL code don't works. pls advice.
I added variable dotnet
PDFPrint DotNet PdfSharp.Pdf.Printing.PdfFilePrinter.'PdfSharp, Version=1.32.2608.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb'
run next C/AL code:
PDFPrint := PDFPrint.PdfFilePrinter;
PDFPrint.PdfFileName('C:\1\TestForm.pdf');
PDFPrint.PrinterName(PDFPrint.DefaultPrinterName);
PDFPrint.Print(100); ( if i don't set milliseconds, then Nav freezes)
nothing occurs
0
Answers
PDFPrint := PDFPrint.PdfFilePrinter(MyFilePath, MyPrinterName);
PDFPrint.Print(100);
If not, is it installed on the NST? Does the "C:\1\" folder exists on the machine where NST service is installed? Do you have access to it?
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Consult the PdfSharp documentation, or ask the vendor, maybe there are some switches/settings which will let you to run Acrobat in the backgrouibd hidding it from users
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03