Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adobe acrobat: Can not print; file already is in use or
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00486494
Message ID:
00516947
Views:
9
>Nadya,
>Just a curiousity question...
>Did this monster stay dead, or did it turn out to be something else?
>

Rick,

After I added sleep function at the top of CreatePDF program, I didn't see this error. Hopefully, this was a fix.

>Rick
>--------------------------------------------
>>Richard,
>>
>>Just to keep you updated: I added a sleep(100) to CreatePDF function and this seemed to do the trick. At least, we hadn't encountered this problem after this change yet.
>>
>>Let's hope, it was a real cure.
>>
>>Thanks a lot for your advices.
>>
>>>The other thing you could do is send the data to a second file and use if for the second pass....assuming the first pass doesn't alter the data.
>>>
>>>Rick
>>>----------------------
>>>>>Nadya,
>>>>>My first thought would be to trap the error and have it re-try (in a loop) until it works or until too much time has passed. My experience seems to indicate that 2-3 seconds should be enough time since most reports are small files. You may also want to verify the file is small. If you're working from a large file using filters to get only the records that apply then maybe if you SELECT'ed them into a small temp table, the scanner would finish sooner...
>>>>>
>>>>>if that's the cause.
>>>>
>>>>I don't have filters, but the files could be huge. The error came from Adobe Acrobat Writer, so I'm not sure, how to trap it. Though, the second error "Error loading printer driver" is probably trappable, but this error comes not from my application, so I'm not sure, how can I trap it.
>>>>>
>>>>>HTH,
>>>>>Rick
>>>>>---------------------------------------------------------
>>>>>>>Nadya,
>>>>>>>I don't know if this applies but I sometimes get a similar message as a result of how our virus scanner is configured....because after an action like this our scanner is checking things out....a moment later it's done and the problem goes away.
>>>>>>
>>>>>>It might apply in our case as well. Do you know, how can we fix the problem?
>>>>>>
>>>>>>
>>>>>>>Rick
>>>>>>>------------------------------
>>>>>>>>Hi everybody,
>>>>>>>>
>>>>>>>>I have a Report, which I run twice (for some pre-processing). First time I issue report form myReport to file noconosole and the second one I run to the printer using Adobe Acrobat Writer as a Printer. (and the program CreatePDF to set printer to Adobe Acrobat and to my filename). Occasionally I have an Error message from Adobe: "Can not print;file is used or locked", then VFP error: "Error loading Printer driver".
>>>>>>>>
>>>>>>>>Does somebody have this problem before? How can I resolve it?
>>>>>>>>
>>>>>>>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform