Bullzip

boomerama
Member Posts: 7
Hi Folks,
situacion (my client still uses 2009R2 classic) :
I have a Report who prints Sales Invoices. To Print them with Bullzip i have this code, that you find in many places on aftergetrecord
Bullzip Version 14.5.2974
CODE:
----
IF ISCLEAR(BullZipPDF) THEN
CREATE(BullZipPDF);
SalesInvoiceHeader.GET("Sales Invoice Header"."No.");
SalesInvoiceHeader.SETRECFILTER;
SalesInvoice.SETTABLEVIEW(SalesInvoiceHeader);
SalesInvoice.USEREQUESTFORM(FALSE);
PDFFileName := Path + SalesInvoiceHeader."No." + '.pdf';
BullZipPDF.Init;
BullZipPDF.LoadSettings;
BullZipPDF.SetValue('Output','PDFFileName'); //only example, better to use timestamp
BullZipPDF.SetValue('Showsettings', 'never');
BullZipPDF.SetValue('ShowPDF', 'no');
BullZipPDF.SetValue('ShowProgress', 'no');
BullZipPDF.SetValue('ShowProgressFinished', 'no');
BullZipPDF.SetValue('SuppressErrors', 'yes');
BullZipPDF.SetValue('ConfirmOverwrite', 'no');
BullZipPDF.WriteSettings(TRUE);
SalesInvoice.RUNMODAL;
BullZipPDF.RemoveSettings();
CLEAR(BullZipPDF);
----
My problem is, that when i run the code without a SLEEP, than it will create one document less than i print and the document that is created is one number bigger.
Example:
Sales Invoice 1001 -> is created as 1002
Sales Invoice 1002 -> is created as 1003
Sales Invoice 1003 is missing
Without SLEEP sometimes it does not create anything. Sometimes, when i try to change the setting (i still dont know which one makes des "different") in thew Bullzip Printer Settings as a User, it creates Files in the defined folder with the use of <date>-<time> - <docname>.pdf, but the docname is the name of report.
define <date>-<time> - <title>.pdf with BullZipPDF.SetValue('title', 'blabla'); does not chanmge anything!#
It seems, that all the settings i set in the code do only affect the BullZipPrinter when running with SLEEP
Any Ideas?
situacion (my client still uses 2009R2 classic) :
I have a Report who prints Sales Invoices. To Print them with Bullzip i have this code, that you find in many places on aftergetrecord
Bullzip Version 14.5.2974
CODE:
----
IF ISCLEAR(BullZipPDF) THEN
CREATE(BullZipPDF);
SalesInvoiceHeader.GET("Sales Invoice Header"."No.");
SalesInvoiceHeader.SETRECFILTER;
SalesInvoice.SETTABLEVIEW(SalesInvoiceHeader);
SalesInvoice.USEREQUESTFORM(FALSE);
PDFFileName := Path + SalesInvoiceHeader."No." + '.pdf';
BullZipPDF.Init;
BullZipPDF.LoadSettings;
BullZipPDF.SetValue('Output','PDFFileName'); //only example, better to use timestamp
BullZipPDF.SetValue('Showsettings', 'never');
BullZipPDF.SetValue('ShowPDF', 'no');
BullZipPDF.SetValue('ShowProgress', 'no');
BullZipPDF.SetValue('ShowProgressFinished', 'no');
BullZipPDF.SetValue('SuppressErrors', 'yes');
BullZipPDF.SetValue('ConfirmOverwrite', 'no');
BullZipPDF.WriteSettings(TRUE);
SalesInvoice.RUNMODAL;
BullZipPDF.RemoveSettings();
CLEAR(BullZipPDF);
----
My problem is, that when i run the code without a SLEEP, than it will create one document less than i print and the document that is created is one number bigger.
Example:
Sales Invoice 1001 -> is created as 1002
Sales Invoice 1002 -> is created as 1003
Sales Invoice 1003 is missing
Without SLEEP sometimes it does not create anything. Sometimes, when i try to change the setting (i still dont know which one makes des "different") in thew Bullzip Printer Settings as a User, it creates Files in the defined folder with the use of <date>-<time> - <docname>.pdf, but the docname is the name of report.
define <date>-<time> - <title>.pdf with BullZipPDF.SetValue('title', 'blabla'); does not chanmge anything!#
It seems, that all the settings i set in the code do only affect the BullZipPrinter when running with SLEEP
Any Ideas?
0
Answers
-
I suppose
BullZipPDF.RemoveSettings();
alters the configuration for the current and all pending print jobs.
Check out the PdfStatus Class of the BullZip automation interface and see, if this can help you wait until pending jobs are completed.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions