PDF Creator creates empty documents

annar
Member Posts: 24
Hi!
I am using PDFCreator to form and send invoices with a little help from NAS. Something like this: http://www.mibuso.com/forum/viewtopic.php?t=26245
Everything works perfectly alright, except for a little problem that some of the pdf-files sent are simply empty. The size of the file is 6kb so I assume that it does create the file itself properly, just nothing is in it.
Has anyone run into this problem or has any idea of where to look for the problem?
I am using PDFCreator to form and send invoices with a little help from NAS. Something like this: http://www.mibuso.com/forum/viewtopic.php?t=26245
Everything works perfectly alright, except for a little problem that some of the pdf-files sent are simply empty. The size of the file is 6kb so I assume that it does create the file itself properly, just nothing is in it.
Has anyone run into this problem or has any idea of where to look for the problem?
0
Comments
-
The key word in your post is "some" so some do work.
Now is there any difference between the ones that work and the ones that don't?0 -
I had the same problem while working with PdfCreator to write Reports to pdf. For me when reports processing time was more, I was getting the blank pdfs.
I handled this by putting sleep(milliseconds) after the line REPORT.RUNMODAL(ReportID,FALSE,TRUE);Sandeep Prajapati
Technical Consultant, MS Dynamics NAV0 -
Yes, some do work and some dont. I can not find anything common among those reports that do not work.
Thnx Sandeep! I'll try this.0 -
It still creates empty pages, tried everything.
What other pdf-components have you used for automated invoicing?0 -
Hi Annar,
Before the file should be attempted to be attached to mail, it shold be completely generated and released. So, keep waiting till the file is generated and released before attaching it to mail.
try something likeReport.Runmodal(****,****,****); WHILE NOT EXISTS(FileDirectory + PDFFileName) DO; // then do whatever
I hope it helps O:)Sandeep Prajapati
Technical Consultant, MS Dynamics NAV0 -
Are you sure that the report is actually outputting something, as in maybe the filters that are set is generating an empty report? Just a suggestion.. :-k0
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