Nov 25, 2003 #1 ZooMoo IS-IT--Management May 16, 2002 11 TH Look at this init method of combobox mr. printernumber = APRINTERS( arrayprinters ) for i = 1 to printernumber this.additem( arrayprinters( i, 1 ) ) next this.vaule = [Default Printer] How to know what a default printer's name thk adv.
Look at this init method of combobox mr. printernumber = APRINTERS( arrayprinters ) for i = 1 to printernumber this.additem( arrayprinters( i, 1 ) ) next this.vaule = [Default Printer] How to know what a default printer's name thk adv.
Nov 25, 2003 #2 ramani Programmer Mar 15, 2001 4,336 AE HI 1. IF APRINTERS(laPrinters) > 0 CREATE CURSOR printers (Names C(254)) APPEND FROM ARRAY laPrinters WITH Thisform.combo1 .Rowsource = PRINTERS.Names .RowSourceType = 6 ENDWITH ELSE MESSAGEBOX("No Printers Installed" ENDIF 2. Default printer can be found with lcDefaultPrinter = SET("PRINTER",3) ____________________________________________ ramani - (Subramanian.G) http://winnersoft.coolfreepages.com/When you ask VFP questions, please add VFP version. Upvote 0 Downvote
HI 1. IF APRINTERS(laPrinters) > 0 CREATE CURSOR printers (Names C(254)) APPEND FROM ARRAY laPrinters WITH Thisform.combo1 .Rowsource = PRINTERS.Names .RowSourceType = 6 ENDWITH ELSE MESSAGEBOX("No Printers Installed" ENDIF 2. Default printer can be found with lcDefaultPrinter = SET("PRINTER",3) ____________________________________________ ramani - (Subramanian.G) http://winnersoft.coolfreepages.com/When you ask VFP questions, please add VFP version.
Nov 25, 2003 #3 EzLogic Programmer Aug 21, 2001 1,230 US ? set("PRINTER",3) Ali Koumaiha TeknoSoft Inc Farmington Hills, Michigan Upvote 0 Downvote
Nov 25, 2003 #4 EzLogic Programmer Aug 21, 2001 1,230 US Ramani, i see you beat me to it.. Ali Koumaiha TeknoSoft Inc Farmington Hills, Michigan Upvote 0 Downvote