I wrote a label program, the program run on different computer, different
site and different printer. I want to print 22 labels on one sheet on
different situation. so I removed the printer driver in label.lbx before
printing in order to the labels can be printed 22 labes on one sheet on each
computer. the templabel.lbx is read only a error occured , when I created a
setup.exe.
how can I remove the read only status of templabel.lbx ?
the following is the code of label program.
thank you for your help
ming
***********************************************
COPY FILE 2x11.lbx TO templabel.lbx
COPY FILE 2x11.lbt TO templabel.lbt
*** Open the temporary report file
USE templabel.lbx IN 0 -------------------------> problem occured right here.
SELECT ("templabel")
GOTO TOP
* Strip some information from EXPR. Remove the driver info.
lcExpr = Expr
lcExpr = STRTRAN(lcExpr, 'DEVICE=', '*DEVICE*=')
lcExpr = STRTRAN(lcExpr, 'DRIVER=', '*DRIVER*=')
lcExpr = STRTRAN(lcExpr, 'OUTPUT=', '*OUTPUT*=')
lcExpr = STRTRAN(lcExpr, 'DEFAULT=', '*DEFAULT*=')
lcExpr = STRTRAN(lcExpr, 'PRINTQUALITY=', '*PRINTQUALITY*=')
lcExpr = STRTRAN(lcExpr, 'YRESOLUTION=', '*YRESOLUTION*=')
lcExpr = STRTRAN(lcExpr, 'TTOPTION=', '*TTOPTION*=')
lcExpr = STRTRAN(lcExpr, 'DUPLEX=', '*DUPLEX*=')
REPLACE TAG WITH '', TAG2 WITH '', EXPR WITH lcExpr
-------------> error occured here , as it is read only, so it can be
replace with everything
*** Close the temp report file so we could run it.
USE IN ("templabel.lbx") && Close the FRX file