Alternative solution could be:
use reportfilename.frx
repl tag with "", tag2 with "",;
expr with "ORIENTATION=0"+chr(13)+chr(10)+;
"PAPERSIZE=136"+chr(13)+chr(10)+;
"ASCII=136"+....
>In windows 2000 if you add a custom form (papersize) then in vfp reports the papersize is stored in the expr field not with the form name but with a form number ..
>DRIVER=winspool
>DEVICE=Lexmark 2381 Plus
>OUTPUT=LPT1:
>ORIENTATION=0
>PAPERSIZE=136 <------------
>ASCII=136
>COPIES=1
>DEFAULTSOURCE=15
>PRINTQUALITY=120
>COLOR=1
>YRESOLUTION=72
>TTOPTION=2
>COLLATE=0
>My problem is that in different machines this number is different for a new form i create.
>Is any way to create a printer form in windows2000 with a predefined
>id.. ?