Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1705 with resource-file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Error 1705 with resource-file
Miscellaneous
Thread ID:
00725742
Message ID:
00725742
Views:
39
Hi there,

within an app to preview and print reports i use the following code to change
between two resource-files, one especially for previewing reports which contains only one record concerning the preview-toolbar and which hides the print-button when the user chooses the preview mode. This special resource-file is compiled within the app. When it comes to changing back to the "standard"-resource file, some users (only a 1 or 2 of 30) get occasionally an error 1705 (File access denied). This does not happen allways, but only occasionally. This is the code I use:

cOldResource = set("resource",1)
set resource to norep.dbf && Is contained within exe-files

*** Chosing the report and running it to get the no. of pages
if nFaktliz > 1 .and. .not. plvesrsep
pvsrreferenz = "012345678901234567890123456"
pvsrcodezeile = "0101234567890>012345678901234567890123456+ 011234567>"
report form (oReport.vesrfaktur) noconsole
else
report form (oReport.faktur) noconsole
endif
nPagecount = _pageno

*** Showing the preview
if nFaktliz > 1 .and. .not. plvesrsep
report form (oReport.vesrfaktur) preview
else
report form (oReport.faktur) preview
endif
set resource to (cOldresource) && Sometimes brings error 1705

The last line is, where the error happens occasionally.

Has anybody had this error too and maybe has some advice?

Thanks in advance

Thomas
Next
Reply
Map
View

Click here to load this message in the networking platform