Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File in use for a label
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160964
Message ID:
01161164
Views:
21
It looks like a bug to me.
* versions VFP7/8/9
LABEL FORM myaddres.lbx TO PRINTER prompt     && file access denied
report FORM myaddres.lbx TO PRINTER prompt    && works
>We have 80+ clients that use the software and alot of custom forms. A decision was made to keep the reports outside the EXE so if we need to change a report we do not need to send them a new EXE only the report.
>
>If I'm in VFP IDE and run the command "label form lbl_5160 noconsole to printer prompt" and do the same in another VFP IDE I get the error. If I do this same thing for a report I do not receive an error. I can get around this but thought VFp would share the label like reports.
>
>>The reason for "File access is denied " is not that the file is in use.
>>One of the reason can be that particular user does not have proper user rights for accessing directory "h:\test\reports" or the file "lbl_5160.lbx" there.
>>
>>In any case, why do you allow users to work with the stand alone report/label file? What is the reason that you have this file as a separate file outside your EXE? Why do not you include this file into exe ?
>>
>>
>>
>>>SELECT csr_Labels
>>>** Print the Lables
>>>label form (ALLTRIM(ThisForm.pgfType.Page2.cntlabels1.lstlabels1.ListItem(lnLCV,4))) noconsole to printer prompt
>>>
>>>the label form is the line of the error. I think this is when the 1st person may in the printer dialog.
>>>
>>>
>>>
>>>>So, what are you doing with lbl_5160.lbx file in the code?
>>>>
>>>>>I read the message that the .LBX is in use. Not the file. I ddid not explain very well.
>>>>>
>>>>>The message is...
>>>>>"File access is denied h:\test\reports\lbl_5160.lbx"
>>>>>
>>>>>>Exactly because "file is in use". Free the file, wait for its availability, or use the temporary file having unique name for each user and/or for each call.
>>>>>>
>>>>>>Other details/recommendations may follow if you show your code.
>>>>>>
>>>>>>>Getting a file in use error when multiple user try to print labels to the same label FRT. Any ideas on why this happens?
Previous
Reply
Map
View

Click here to load this message in the networking platform