ExcelApp.ActiveSheet.PageSetup.Orientation := xlLa |
尚未結案
|
alpha317
一般會員 發表:2 回覆:3 積分:1 註冊:2004-12-24 發送簡訊給我 |
|
Fishman
尊榮會員 發表:120 回覆:1949 積分:2163 註冊:2006-10-28 發送簡訊給我 |
|
alpha317
一般會員 發表:2 回覆:3 積分:1 註冊:2004-12-24 發送簡訊給我 |
//--Delphi 6 (Excel 2003) ExcelApp.ActiveSheet.WorkSheets.PageSetup.Orientation := xlLandscape; [Error]Undeclared identifier: "xlLandscape" 还是不能用 ^_^"
ExcelApp.ActiveSheet as _WorkSheet).PageSetup.Orientation := xlLandscape;
[Error]Undeclared identifier: "xlLandscape"
[Error]Undeclared identifier: "_WorkSheet" 偶是新手请帮帮忙.....
|
alpha317
一般會員 發表:2 回覆:3 積分:1 註冊:2004-12-24 發送簡訊給我 |
|
Fishman
尊榮會員 發表:120 回覆:1949 積分:2163 註冊:2006-10-28 發送簡訊給我 |
Hi alpha317, 參考這一篇文章 http://delphi.ktop.com.tw/topic.php?topic_id=43788 uses Excel2000 試試! ----------------------------------
小弟才疏學淺,若有謬誤尚請不吝指教
----------------------------------
------
Fishman |
alpha317
一般會員 發表:2 回覆:3 積分:1 註冊:2004-12-24 發送簡訊給我 |
|
firecat
一般會員 發表:5 回覆:4 積分:1 註冊:2004-02-17 發送簡訊給我 |
alpha317:
Fishman的意思應該是在uses那段加上Excel2000,醬子Delphi才看得懂xlLandscape代表什麼意思,我也是新手啦,所以我猜你有可能是會錯意
我的範例如下 unit MakeExcelFile; interface uses
Windows, Messages, SysUtils, Variants, Classes, Graphics,
Controls, Forms, Dialogs,ComObj, StdCtrls, Excel2000;
^^^^^^^^^^
是在加在這裡哦 :P 不過我也不知道我有沒有猜對,有猜對的話試試唄
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |