>There are two paper tary in HP printer .
>I want my program can select one of the tary to print out the report. What can I do in VFP ?
>( one tary is for the pre-printed form and one tary is blank paper)
>I don't want the user to select the tary everytimes before printing.
You can set this via Page Setup in the VFP File menu; just make sure that the printer you want is available, with the proper driver, and with the name used for the printer at the target system. THe printer information will be stored in the FRX
DOing this will result in giving up hardware independence. I prefer to create my report via Word automation, which has greater control over page layout than VFP's report writer. You can also write the printer output to a file (not send the VFP report to the printer - you take over the formatting responsibilities) and add appropriate print codes to the output stream. The resulting file would be printed by sending it directly to the target printer as a raw stream - you have to keep Windows out of the process to do this.