You cannot create an automation object BullZipPDF on microso

elegeant
Member Posts: 7
Hi
I am getting the error message 'You cannot create an automation object BullZipPDF on Microsoft Dynamic Nav Server . You must create it on a client computer. This is obtained when using the following on a report which is printing sales invoice to PDF. This code is working fine on Nav 2009 R2 but not on Nav 2013. Please help.
IF ISCLEAR(BullZipPDF) THEN
CREATE(BullZipPDF);
I am getting the error message 'You cannot create an automation object BullZipPDF on Microsoft Dynamic Nav Server . You must create it on a client computer. This is obtained when using the following on a report which is printing sales invoice to PDF. This code is working fine on Nav 2009 R2 but not on Nav 2013. Please help.
IF ISCLEAR(BullZipPDF) THEN
CREATE(BullZipPDF);
0
Comments
-
You should use CREATE(BullZipPDF, TRUE, TRUE);
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
The better approach here would be to update your code to use the Bullzip.PdfWriter .net library rather than COM automation. Then you'll have the option of executing PDF creation logic server-side if you need to (eg. a process running on the NAS).
The other question here is whether you still need to use the Bullzip PDF writer. Does the native SAVEASPDF not work for some reason?Rob Hansen
http://www.epimatic.com0 -
What a conincidence, I am doing the same, upgrading a BullZip based invoice emailing customization
Basically forget it - do a SAVEASPDF and then mail it with the SMTP Mail Codeunit.
Although it is weird that for me the old solution had a "merge" and a "superimpose" BullZip commands with two static PDF files. I am trying to figure out what that does... because the finished result looks exactly like the normal invoice report so I don't even get what is the point of that.0 -
What Miklos said is better.
I also stopped using PDFCreator in NAV 2013 R2 and now use SAVEASPDF.
After SAVEASPDF I use pdftk for merging with a pdf for background.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Can you please explain this merging stuff? I am migrating a BullZip based thing that has this merging but I have no idea what it is actually for or even why. What is pdftk and why is this merging useful?0
-
I use pdftk for merging the digital writing paper (with logo and company information) with documents from NAV.
This week I'm going to use it for adding an extra page after a NAV-document.
More info on pdftk: http://en.wikipedia.org/wiki/Pdftk
And pdftk is also mentioned one or two times on mibuso.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Could you show a simple NAV code sample how you use this? in Classic and in RTC0
-
mdPartnerNL wrote:Could you show a simple NAV code sample how you use this? in Classic and in RTC
TextCMDLine := 'F:\pdf\pdftk.exe' + ' ' + PDF1 + ' ' + 'background' + ' ' + PDF2 + ' ' + 'output' + ' ' + PDFMergedWithBackground;
FileToWrite.CREATE(BatFileNameTxtServer); FileToWrite.TEXTMODE(TRUE); FileToWrite.WRITE('@ECHO OFF'); FileToWrite.WRITE(TextCMDLine); FileToWrite.WRITE('@ECHO OFF'); FileToWrite.CLOSE;
Execute the batchfile.
And use SLEEP before you use the merged pdf.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
In addition;
I've created a batchfile in which I call pdftk.exe three times. I had to build in a "TIMEOUT /T 1" for a sleep of one second between the pdftk.exe-lines.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
Another idea (which I got from an ara3n post on Mibuso which I cannot find) is to wait until the file exists:
REPORT.SAVEASPDF(ReportSelection."Report ID", InvoiceFile, SIH); WHILE NOT SETSTAMP(InvoiceFile,TODAY,TIME) DO
This has worked out well for me.David Machanick
http://mibuso.com/blogs/davidmachanick/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