I have a simple sub that prints to a .pdf file.
If I step thru using F8, I get the results I want (a .pdf file with actual data)
When I run the subroutine I get a .pdf file with 0 bytes of data.
I appreciate any help.
I have a simple sub that prints to a .pdf file.
If I step thru using F8, I get the results I want (a .pdf file with actual data)
When I run the subroutine I get a .pdf file with 0 bytes of data.
I appreciate any help.
Not know what your code is doing...
My first impression is that when you are stepping through the code you are allowing time for all the processing to be completed... my want to try adding a:
Doevents()
To your code to yield control to the process creating the pdf.
Ted
"Live Long and Prosper"
I've tried using Wait method to pause code between creation of pdf and printing but I get the same results - a pdf file with 0 bytes.
Without knowing what you are doing, this is just a guess. What about slowing it down between your calculation routine and the PDF creation? It seems to me that might be where you have the processing lag. Or are you just creating a PDF from static data?
Post the code and that will eliminate some of the guesswork.
Ben Van Johnson
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks