回复人: zswang(伴水)(被黑中) (2001-12-13 9:31:57) 得0分
var
vSelectedSheets: OleVariant;
begin
//..............
vSelectedSheets := form1.ExcelApplication1.ActiveWindow.SelectedSheets;
vSelectedSheets.PrintPreview;
//vSelectedSheets.PrintOut;
回复人: cobi(我是小新) (2001-12-13 9:37:29) 得0分
excel.worksheets['sheet1'].printpreview;ShellExecute(Handle, 'Open', PChar('c:\111.xls'), nil, nil, sw_shownormal);///这一句有没有uses shellapi呢/
var
vSelectedSheets: OleVariant;
begin
//..............
vSelectedSheets := form1.ExcelApplication1.ActiveWindow.SelectedSheets;
vSelectedSheets.PrintPreview;
//vSelectedSheets.PrintOut;
回复人: cobi(我是小新) (2001-12-13 9:37:29) 得0分
excel.worksheets['sheet1'].printpreview;ShellExecute(Handle, 'Open', PChar('c:\111.xls'), nil, nil, sw_shownormal);///这一句有没有uses shellapi呢/
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货