It looks like a bug to me.
LABEL FORM myaddres.lbx TO PRINTER prompt
report FORM myaddres.lbx TO PRINTER prompt
>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?