Print Page | Close Window

Some reports do not convert

Printed From: www.exp-systems.com
Category: PDF reDirect
Forum Name: Programming
Forum Discription: VBA and Batch Tools to control PDF reDirect Pro
URL: http://www.exp-systems.com/Forum_exp/forum_posts.asp?TID=500
Printed Date: 22 Nov 24 at 6:11PM


Topic: Some reports do not convert
Posted By: RAM1
Subject: Some reports do not convert
Date Posted: 18 Jun 09 at 7:33PM
Hello Michel,
 
I'm using the latest Pro version with MS Access. Using the same code, taken from the sample, following the same path, some reports convert to PDF, some go directly to print (not the default printer).
 
The report definitions are nearly identical. Using the report definition of one report that did print, I used the data from one that did not... the report still printed.
 
I now believe that the problem lay in the report definition, but cannot imagine what would influence the PDF creation as the Application.Printer remains the same in both cases.
 
I'm fairly new to Access and VBA, but the code is well documented. There are no surprises or alternate paths taken from one report to the other.
 
Any thoughts on this?
 
Ron.
 



Replies:
Posted By: Michel_K17
Date Posted: 19 Jun 09 at 12:09AM
Hi Ron,

   The only thing that comes to mind (a shot in the dark really) might be that setting the default printer might take some time to "take".

   Therefore, you could try to add a short pause (I'd say 100 ms as a good start) after changing the default printer before sending the print job to PDF reDirect or the PDF batch printer.

   Hopefully this will work.



-------------
Michel Korwin-Szymanowski
EXP Systems LLC



Print Page | Close Window