>>Set('PRINTER',3) returns VFP default printer, so you can use it.
>
>I already have that printer name in the variable
>
>I issue the following commands:-
>
>>set printer to name (cMyPrinter)
>report form (cMyReport) prompt preview
>
>
>But it does not preview on cMyPrinter but instead on Windows default printer, which is a LaseJet and not Dot Matrix. This causes the rightmost columns to disappear as the page width needed is not present in LaseJet.
>
>How to show Print Preview on a known Printer Name?
As long as you reset printer, and have clean FRX file, you should get proper preview. Check if your Frx file contains any printer definitions in Expr,Tag,Tag2 fields (1st record).
Edward Pikman
Independent Consultant