A. 问题:系统调用Crystal Report。要求提供打印机设置功能(调用windows系统的打印机设置界面)。Crystal提供的可编程接口中有一个函数selectprinter()可以完成此功能,但该函数的参数为driver、printer name、port(祥见Crystal Help)。我希望用最简便的方法得到这三个参数。
(GETPRINTER( )) &&Displays the Print dialog box and returns the name of the printer you select.
另外这几个你也顺便看看吧
SYS(6) Current printer device
SYS(13) Printer status
SYS(102) Printer setting Included for backward compatibility. Use SET("PRINTER") instead.