Hello
How to send sales invoice to a printer in VSCode?
The below code wil always print PDF an open a dilogbox to save the file.
SalesInvoice.SetTableView(SalesInvoiceHeader);
SalesInvoice.UseRequestPage := false;
SalesInvoice.Print();
MS say that we cannot use Printer selection anymore as BC15 uses cloud printer.
we are using BC15 W2.
Any suggestions?
Thank you.
Kind regards
Firas
Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant
0
Answers
BC16 adds some cloud / email printing capability, but it requires the destination printer to be email/cloud capable (meaning the printer receives an email for each print job).
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-reports-printing
The only other options are to write your own print handler that captures the PDF of the report silently and either uses dotnet or web services to get the PDF rendered to the printer. Neither is a good option.
http://www.columbia.edu/~em36/pdftoprinter.html
https://www.kauffmann.nl/2017/03/29/web-services-example-8-print-from-nav-web-client/
Ms. dynamics NAV / Dynamics 365 Business Central Development Consultant