>>>>
>>>>Using SET PRINTER TO NAME ... you may print to different printers. Do not forget to clean up 'default' printer definitions from FRX table.
>>>
>>>Yes, but how do I use a variable/combobox value for the name? I've tried SET PRINTER TO NAME &CBOVALUE where CBOVALUE is set to the current value of the combo box...thanks for the reply
>>
>>I guess that you may try
>>SET Printer to NAME (cValue)
>>where cValue=thisform.mycombo.value
>>I believe you know that APRINTERS returns 2-dimensional array, and you use correct column for combo. Again, do not forget to clen FRX file first.
>
>
>SHEESH! I don't know why I didn't think of using name replacement instead of macro...but now another question, what do you mean by cleaning the FRX file?
There are three fields in the first record of FRX table which contains printer definition leftover from development workstation. Normally, it's considered as safe practice to remove them before building final executable, just to prevent unwanted printing if some user's workstation happens to have identical report mapping. The fields names are Expr, Tag, Tag2. The former one should be cleaned up partially only (you will see that only few first lines there are about printer). Latter two fields should be cleaned up completely. Again, it's only in the first record, and make backup before doing this.
Edward Pikman
Independent Consultant