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:
00488584
Views:
7
Try to open the file the report is generated from....exclusive...then if the exlusive open fails....loop until you get it, then etc.
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform