




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、SAP Script 編程指南1 SAPscript Forms31.1 SAPscript的組成31.2 Forms: 組件和技術31.2.1 概念31.2.1.1修改SAP Forms31.2.1.2 Forms:概念41.2.1.3 Client和語言版本:概念41.2.2 組件41.2.2.1 Header Data41.2.2.2 Paragraph Formats and Attributes61.2.2.3 Character Formats and Attributes81.2.2.4 Windows81.2.2.5 Pages(頁面)101.2.2.6 Pages windo
2、w(頁面窗口)111.2.2.7 Text Elements (文本元素)121.2.3 技術151.2.3.1在Form中包含圖形151.2.3.2在FORM中包含公司logo171.2.3.3在form中打印條形碼241.2.3.4 Using Boxes, Lines, and Shading272.SAPscript Control Commands302.1 Control Commands語法302.2 Control Commands 種類302.2.1 顯示分頁:NEW-PAGE302.2.2 限制分頁:PROTECT312.2.3 下一個main window命令:NEW-W
3、INDOW312.2.4 給文本symbol分配值:DEFINE312.2.5 格式化日期字段:SET DATE MASK322.2.6 格式化Time字段:SET TIME MASK332.2.7 設置與國家相關的格式:SET COUNTRY332.2.8 設置symbol位:SET SIGN342.2.9 Initializing Numbered Paragraphs:RESET342.2.10包含其他文本:INCLUDE352.2.11改變樣式:STYLE352.2.12格式化地址:ADDRESS352.2.13在main window中設置Header Text:TOP372.2.1
4、4在main window中設置Footer Text:BOTTOM372.2.15條件文本:IF372.2.16條件文本:CASE382.2.17調用ABAP子程序:PERFORM382.2.18合計:SUMMING403.SAPscript Symbols403.1Syntax of Symbols403.2System Symbols413.3Program Symbols423.4Standard Symbols433.5Text Symbols434.Formatting Options434.1Offset(偏移量)434.2Output Length444.3 Omitting
5、the Leading Sign444.3 Omitting Leading Zeros454.4 Space Compression454.5 Number of Decimal Places454.6 Omitting the Separator for Thousands464.7 Specifying an Exponent for Floating Point Numbers464.8 Right-Justified Output464.9 Fill Characters474.10 Suppressing Output of Initial Values474.11Local Da
6、tes(Currently Only for Japan)474.12Changing the Value of a Counter474.13Preceding and Subsequent Texts(Pre-Text/Post-Text)485.SAPscript Function Modules495.1OPEN_FORM515.2CLOSE_FORM525.3WRITE_FORM526一個完整的例子531 SAPscript Forms1.1 SAPscript的組成SAPscript由下面五個部分組成:1)編輯器用來編輯一行文本。如果用戶決定維護與應用程序相關的文本,應用程序事務會
7、自動調用這個文本編輯器,2)styles和forms,用來打印layout。3)中央輸出模塊設計器。它的任務是根據(jù)相應的格式信息為某種外部設備準備文本,這些格式信息來自于分配了文本的style和forms。4)程序接口,通過將SAPscript組件包括在程序中來控制form的輸出。5)用來存儲文本、styles、forms的數(shù)據(jù)庫表格。可以用下圖來表示:1.2 Forms: 組件和技術1.2.1 概念1.2.1.1修改SAP Forms如果需要修改SAP Forms,可以象下面這樣設置開發(fā)環(huán)境:l 確信客戶端沒有標準的SAP Formsl 拷貝你需要的標準SAP Forms到你的開發(fā)環(huán)境中l(wèi)
8、重新命名,最好以Y或者Z開頭l 為了使更改生效,需要修改相關的SAP 打印程序使用經過你修改后的Forms,可以使用SAP IMG來進行。1.2.1.2 Forms:概念Forms用來控制文檔中的頁面layout和文本格式。在將某一文檔輸出到打印機或者屏幕的時候,必須將一個Form分配給該文檔。如果沒有指定,就使用系統(tǒng)默認的Form。在SAP應用中,通常利用Forms來定制諸如發(fā)票、支票之類的特殊文檔的layout。這些Forms用來描述文檔頁面中的信息結構,比如地址抬頭、item行、頁腳等等。有兩種方法來格式化Forms中的的文本:l 在標準的SAPscript文本處理器中(Tools
9、174; Word processing ® Standard text),可以為一個文檔選擇一Form。然后在Form的Main窗口中輸入文本并格式化。例如,我們?yōu)樾偶x擇一個Form,然后在Main窗口中輸入信件內容,當打印該信件時,信件內容隨同其他信息一并打印出來(比如抬頭、頁腳等等)。l 通過SAP應用中的打印程序生成文檔。該打印程序使用一個Form,并提示用戶輸入相關文本信息。1.2.1.3 Client和語言版本:概念Forms和Styles是與客戶端相關的,也就是說,在哪一個客戶端創(chuàng)建的Form和Styles只能在這個客戶端使用。同樣的,F(xiàn)orms和Styles也是語言
10、相關的,在Forms和Styles中的定義的文本只能用一種語言來進行定義??梢杂肧AP翻譯工具來翻譯這些Forms和StylesClient 000缺?。篠APscript給在client000中的Forms和Styles賦予一種特殊狀態(tài)。如果在打印一個文檔的時候,文檔中定義的Forms和Styles在當前客戶端不可用,則SAPscript就在client000中檢查所定義的Forms和Styles,如果找到,就利用client000中的來進行打印。SAP標準Forms和Styles總是存儲在client000中。可以通過拷貝這些標準Forms和Styles到當前客戶端并重新以YXXX或者ZX
11、XX命名加以使用。Language rules: SAPscript uses the following rules to manage versions of forms and styles in different languages:· The language in which a form or style is created is its "original language." You can translate a form or style into other languages using SAPs translation tools.
12、 · If a form or style is needed only in its original language and need not be translated, then you can indicate this in the language attributes in the header data. The form or style then does not appear in work lists in the translation tools. · In versions other than the original language
13、version, changes to a form or style are limited only to translation of texts. No changes to definitions and attributes are permitted. 1.2.2 組件1.2.2.1 Header DataHeader Data由全局數(shù)據(jù),比如page格式、page方向、初始字體等組成。在Header Data的Basic settings標簽中可以對這些數(shù)據(jù)進行維護。Header Data還包括form的名字、描述、類以及狀態(tài)。Header Data的操作畫面如下:一個例子:下
14、圖是簡單的發(fā)票的例子,是利用SAPscript Form創(chuàng)建的。每一個form由一個start page和任意數(shù)量的subsequent pages組成,這依賴于字符文本的長度。在這個例子中,start page由地址欄窗口、包含參考消息的信息窗口、包含公司相關數(shù)據(jù)的窗口以及包含真正業(yè)務數(shù)據(jù)的窗口(業(yè)務數(shù)據(jù)也顯示在subsequent page中)和包含頁碼的窗口組成。 包含業(yè)務數(shù)據(jù)的窗口不同于其他窗口。無論什么時候,只要一頁數(shù)據(jù)顯示不下時,會自動顯示在subsequent中。因而,這個窗口控制換頁,而且這種窗口只能有一個,在SAPscript form中稱這種窗口為main window.如
15、下圖所示:1.2.2.2 Paragraph Formats and Attributes在SAPscript中,Paragraph(段落)就是使用某種格式和相應屬性的一種格式設置。通過應用不同的段落屬性組來簡化文本處理,這些屬性組包括:l 標準屬性l 字體l Tabsl Outline對一個段落標志命名有下面的約定束成:l 段落名由一到兩個字符組成;l 第一個字符必須是字母,第二個字符可以是字母、數(shù)字或者空格;特殊字符無效;l 段落格式在Description域中必須進行標識。段落格式設置畫面如下:下面分別對前面的屬性組加以說明:1) 標準屬性在標準屬性組中,可以設置在段落格式中需要用到的通
16、用屬性,包括:描述信息(Description)左邊右邊距(Left margin, Right margin)第一行的縮進(indent 1st line)前后空格(Space before, Space after)對齊方式(Alignment)行間距(Line spacing)是否空行(No blank lines)是否頁面保護(Page protection)同一頁上是否有下一個段落(Next paragraph same page)2) Font 屬性可以為段落格式指定字體屬性,用來控制文本中的字體。字體屬性包括字體、大小、黑體/粗體/斜體、下劃線等等。、3) Tabs in Par
17、agraph Formats可以根據(jù)需要為每個段落格式定義tabs的位置,在pc editor中兩個”,”symbol代表段落中的一個tabs??梢允褂孟旅娴亩攘繂挝粊矶xtabs的位置:CH (字符)CM (厘米)MM(毫米)PT(點陣)TW(1/20 點)4) Outline用來指定文檔中的層次和目錄結構。具體請參見sap online help1.2.2.3 Character Formats and AttributesCharacter formats and Attributes可以用來格式段落中的一段文字。命名方式與段落一樣。字符屬性組可以是:l Standardl FontSt
18、andard 屬性包括marker(標記或者超連接)、Barcode、Protected、Hidden、Superscript等。Font屬性與段落中的Font屬性一樣使用。1.2.2.4 WindowsWindows在Form維護中定義。代表頁面中的一個區(qū)域(Page Window),每一個Form中至少定一個window,否則,SAPscript不能格式化文本??梢詾閣indow定義類型和名字,注意在每一個Form中只能有一個Main window。在定義一個Form Window的時候,必須選擇一個窗口類型。下面是可以使用的窗口類型:l Main Window每一個Form必須有一個MA
19、IN類型的窗口,這樣的窗口叫做Main Window。在SAPscript中主窗口具有下面的意義:1) 控制換頁;2) 包含可以跨越多個pages的內容;3) 可以在page window中固定文本元素,比如列標題。一旦main window內容填滿后,就會自動換頁,在下一頁的main window中繼續(xù)輸出余下的內容。而且格式保持不變。注意:如果page中沒有main window,系統(tǒng)會隱含處理page中的其他window以及subsequent page,在這種情況下,SAPscript會在處理完(最多)三個subsequent pages后終止處理。為了輸出header line或者t
20、otals,需要指定main window中的輸出區(qū)域(output area)。為了在頁面(page)中的main window中進行文本輸出,可以選擇三種類型的區(qū)域之一。Main window中的頂層區(qū)域叫TOP Area;下層區(qū)域叫BOTTOM Area;它們之間的區(qū)域叫做BODY Area。TOP Area和BOTTOM Area的大小依賴于各自的文本內容,BODY Area的大小相應的發(fā)生變化。如下圖所示: 在Form輸出時,可以對這三個區(qū)域的內容進行動態(tài)修改。SAPscript在包含main windwo的Form的每一頁上自動輸出這些區(qū)域。當在調用函數(shù)模塊WRITE_FORM或者
21、WRITE_FORM_LINES時,TYPE參數(shù)決定在哪一個區(qū)域輸出文本,如果在調用時,沒有指定TYPE參數(shù),系統(tǒng)默認輸出BODY區(qū)域的內容。 比如下面的圖示以及代碼:l VAR Window(可變窗口)可變窗口的內容在每一個page中都要處理一次。系統(tǒng)輸出僅僅適合窗口尺寸,超出窗口的文本被自動截掉;可變窗口也不會觸發(fā)換頁處理。不象CONST Window,page window如果聲明為VAR Window,意味著在不同的Form pages中可以有不同的尺寸。注意:在窗口內容處理方面,系統(tǒng)并不區(qū)分CONST Window和VAR Window,唯一的區(qū)別就是在全部Form中具有同樣尺寸。l
22、 CONST window(常量窗口)從版本4.0開始,在系統(tǒng)內部處理中,并不區(qū)分CONST Window和VAR Window,所以,如果創(chuàng)建一個新的window,總是使用VAR類型的。1.2.2.5 Pages(頁面)對每一個Form必須定義至少一個page,而且必須在Form的header屬性標簽中指定“first” page。否則,不能進行文本格式化。另外,應該指定當?shù)竭_第一頁的末尾的時候,接下來的一頁是哪頁。如果沒有指定的話,輸出就在當前頁的末尾終止。為了定義一個page,需要為它指定名字和屬性:l 下一頁的名字l page的計數(shù)模式l page數(shù)的數(shù)字類型l 資源名字l 打印模式文
23、檔的單個pages通常有不同的layouts:發(fā)票的第一頁與接下來的頁不一樣,在這些頁上不需要重復通用信息,比如地址或者客戶數(shù)據(jù),象窗口中的文本元素一樣,page也有名字,在有需要換頁的情況下,需要通過這些名字來指定下一頁,如果想文檔的樣式變化越多,就需要在SAPscript中定義越多的page。下圖說明如何利用事務代碼SE71維護一個page。在WIN32操作系統(tǒng)中可以利用Form Painter。1.2.2.6 Pages window(頁面窗口)Pages window就是定義在頁面中的窗口,這里的頁面和窗口都是已經預先定義好的,定義pages window的主要任務就是將窗口和頁面關聯(lián)
24、起來,一個頁面中可以有多個窗口。 在定義pages windows時,窗口的名字與page的名字關聯(lián)起來。必須指定分配給page的窗口的位置和大小。 通過指定左邊和上邊距來定義窗口的位置,指定其高度和寬度來定義窗口的大小。 注意:1)在所有pages中的main window的寬度必須相同。其他的窗口類型在不同的pages中可以有不同的尺寸和位置。2)為了打印多列,需要在一個page中定義多個main window。因為文本條目是連續(xù)的,一旦第一個main window被寫滿之后,輸出可以在第二個窗口繼續(xù)。當定義windows和pages的時候,可以不必指定位置和輸出的文本間隔。為了指定這些值
25、,可以直接創(chuàng)建一個page window。l 當定義page window時,需要指定:l 顯示在page上的windowl window的尺寸(包括大小、寬度、高度)l 頁面中各個window的位置如下圖所示:1.2.2.7 Text Elements (文本元素)SAPscript將form中的單個文本組件稱之為Text Elements(文本元素),為了獲得較好的結構和可讀性,可以為form中的每一個Text Elements分配一個固定的名字,打印程序通過這些定義的名字來訪問Text Elements。Text Elements與window相關,就是說,打印程序僅僅能夠調用定義在窗口
26、中的文本元素。下圖顯示了定義在main window中的HEADING和FLIGHTIST兩個Text Elements??梢詫⑦@里定義的Text Elements和ABAP程序中(比如TEXT-001)定義的文本相比較來學習,但是,Text Elements比ABAP程序中(比如TEXT-001)定義的文本更靈活,主要表現(xiàn)在:l Text Elements的長度沒有限制;l Text Elements可以包含變量符;l 在一個Text Elements中可以使用幾個不同的格式選項;l 在Text Elements中可以使用SAPscript控制語句。在window中,可以使用兩種不同的Tex
27、t Elements,一種叫做有名Text Elements;另外一種叫做無名Text Elements。1) 有名Text Elements通過段落格式“/E”來識別有名Text Elements,在行編輯器中,看起來象這樣:字符串<NAME>代表Text Elements的名字,名字可以有30個長度,而且可以包含字母、數(shù)字、特殊字符。名字后面接下來就是這個Text Elements的文本行。一個Text Elements在下一個Text Elements開始處結束。注意:Text Elements的名字僅僅在本地有效(LOCAL),即不同的窗口可以包含相同的Text Eleme
28、nts的名字。為了輸出有名Text Elements,必須在程序中(ABAP)使用函數(shù)模塊WRITE_FORM。下圖說明了發(fā)票中的列頭Text Elements。2) 無名Text Elements無名Text Elements或者叫做缺省文本元素是這樣的一些文本行和控制語句,它們顯示在相應window contents的起始處,沒有“/E”段落格式。包括所有的行直到出現(xiàn)“/E” 段落格式,或者直到末尾,如果中間沒有其他“/E”標志出現(xiàn),因此,在一個window中只能包括一個無名Text Elements。這兩種Text Elements之間的區(qū)別在于:l 對于有Text Elements來說
29、,只有當系統(tǒng)顯示調用函數(shù)模塊WRITE_FORM時,才被輸出;而對名Text Elements,系統(tǒng)會自動處理。l Main window 中的Text Elements僅僅出現(xiàn)一次,它不會出現(xiàn)在包含main window的form的subsequent page中。l 其它window類型(除main window外)的無名Text Elements每次都會出現(xiàn)。下面的例說明了在form中的ADDRESS window的無名Text Elements,這個Text Elements輸出客戶地址,ADRS_SENDER標準文本僅僅在第一頁顯示(通過IF AND CASE語句可以控制)。3) 激
30、活Text Elements當函數(shù)模塊WRITE_FORM的時候,可以通過設置FUNCTION參數(shù)的值在打印程序中激活窗口中的Text Elements,F(xiàn)UNCTION可以是下面的值:l SET用當前的值代替所有window中激活的文本元素l APPEND將當前的Text Elements追加到激活的Text Elementsl DELETE 從激活的Text Elements列表中刪除當前的Text Elements注:激活Text Elements是指當當前page調用時,系統(tǒng)準備輸出的window Text Elements。在main window BODY域中,APPEND和SET
31、具有相同的效果,DELETE對其沒有影響,在TOP和BOTTOM域中,與上面描述的相同。1.2.3 技術1.2.3.1在Form中包含圖形這一節(jié)主要介紹在form中包括圖形的技術,主要介紹如何在form中打印公司logo和如何打印條形碼。1) 在form中打印公司logo為了能夠打印公司logo,不管是在form中,還是在PCL-5打印機預定的宏中,下面的規(guī)則有助于選擇合適的方法:l 如果不能夠以TIF6.0的格式提供logo,則公司logo應該在PCL-5打印機預定的宏中進行打??;l 如果沒有PCL-5打印機,則需要將公司logo包含在form中;l 在其他任何情況下,將公司logo包含在f
32、orm中。如果在打印公司logo的時候,正確的參照了這里的說明,但還是沒有能夠正確打印出公司的logo,可能是因為你提供的logo的圖形格式不是基于TIF6.0的,如果文件格式不正確,SAP并不給出任何錯誤信息。下面介紹在form中包含公司logo的步驟:1.2.3.2在FORM中包含公司logoStep-by-Step GuideTask 1Convert your company logo into a SAPscript standard text. 1. Create your company logo with a graphic program and save it in the
33、 Baseline TIFF 6.0 format.In this guide, the filename is LOGO.TIF.2. From the SAP main menu, choose Tools ® ABAP Workbench.33. On the ABAP Workbench screen, choose ABAP Editor.544. In the Program field, enter RSTXLDMC.5. Choose Execute. 789106. Determine the location of LOGO.TIF.7. In the File
34、name field, enter the file name with its location.Note: UNIX file names are case sensitive. 8. In the Type field, enter the appropriate type for the raster image.§ BMON stands for a black and white raster image.Use BMON for monochrome printers because these printers normally do not perform a gr
35、ay-level conversion.§ BCOL stands for a color raster image with up to 256 colors.For this example, use BMON.9. In the Text name field, enter ZHEX-MACRO-LOGO.10. Choose Execute.1112The upload may take a while. The result should be a protocol as shown.11. At the end of the protocol, a Standard te
36、xt ZHEX-MACRO-LOGO ID ST Language EN saved successfully message indicates that the standard text was created.12. Choose Back four times to return to the SAP main menu.You can easily display the created standard text.1. Choose Tools ® Word processing ® Standard text.2. In the Text name fiel
37、d, enter ZHEX-MACRO-LOGO.3. Choose Display.For additional information about report RSTXLDMC, access the report documentation:1. Choose Tools ® ABAP Workbench.2. Choose ABAP Editor.3. In the Program field, enter RSTXLDMC.4. Select Documentation.5. Choose Display.Step-by-Step GuideTask 2Include t
38、he standard text ZHEX-MACRO_LOGO in the sales order confirmation form Z_9H_RVORDER01. 1. From the SAP main menu, choose Tools ® Word processing ® Form.3242. In the Form field, enter Z_9H_RVORDER01, and in the Language field, enter EN.3. In the Sub-objects section, select Page layout. 4. Ch
39、oose Change.The synchronized screens of the Form Painter appear.5. In the Design window5, create a new window by choosing Create window form the form layout manipulation menu.The new window is automatically named Window1.66. Activate Window1 and choose Rename window from the form layout manipulation
40、 menu.877. Rename Window1 as LOGO.8. Choose Execute.99. Define the position of the window LOGO using the graphical Form Painter.With graphics or macros the system considers only the window position but not the size. The Left margin must be specified in CH (characters) and the Upper margin must be sp
41、ecified in LN (line). 1010. Activate the LOGO window and choose Edit window text from the form layout manipulation window. The PC Editor for the LOGO window appears.1111. In the PC Editor choose the Insert command button.The Insert Additional Information screen appears.14131212. Select Command.13. E
42、nter INCLUDE ZHEX-MACRO-LOGO OBJECT TEXT ID ST in the command line.14. Choose Continue.15The new command line (gray highlighted) appears in the PC Editor.15. Choose Back.The window text is automatically saved by the system. 16. Confirm the information.1717. Activate the changed form.Your company log
43、o appears on the first page of form Z_9H_RVORDER01 using the standard text ZHEX-MACRO-LOGO and the window LOGO for the print output. If the company logo should be displayed on the subsequent pages, you must copy the window LOGO to page NEXT. You have to repeat the following procedure for all defined
44、 pages:1. In the administrative screen, choose the window LOGO.2. Copy the window.3. Choose page NEXT.4. Insert the window.The position and size of the window LOGO defined for page FIRST apply to the other pages.5. Activate the form.注:關于如何在PCL-5打印機中打印公司logo,請參見相關資料,這里從略。1.2.3.3在form中打印條形碼Step-by-Ste
45、p GuideTaskDefine the material numbers on the sales order confirmation Z_9H_RVORDER01 as a “3 of 9” bar code with a check digit. 1. From the SAP main menu, choose Tools ® Word processing® Form.2342. In the Form field, enter Z_9H_RVORDER01, and in the Language field, enter EN.3. Select Char
46、acter formats.4. Choose Change.91056785. In the String field, enter B3.6. In the Description field, enter Bar code 3 of 9 w/check.7. Choose Enter.The new character format appears in the character formats frame.8. In the Bar code field, press the F4 help key and choose the appropriate bar code from t
47、he list of available bar codes.Choose BC_CD39C.9. Save the new character format.The bar code is now defined and can be used. Next, we have to adjust the output of the Main window.10. Choose Layout.1111. In the Design Window activate the Main window and choose Edit window text.131212. In the text edi
48、tor, scroll down until you see /E ITEM_LINE.13. Place the cursor at the end of the first line under /E ITEM_LINE.14. Choose Enter to create a new line.161515. In the new line, enter ,<B3>&VBDPA-MATNR&</>.16. Choose Back.17. Confirm all the subsequent popup windows.The two commas,
49、 for the first tab, position the bar code under the material number. <B3> changes the current character string to B3, which defines the bar code. </> ends the character string and returns to IL.Some of the bar codes are higher than one line, which may cause the previous lines to overlap.
50、 To avoid overlapping, add blank lines before the line with the bar code. Use an appropriate paragraph for this blank line, so that the blank lines are not compressed. To check the paragraph settings, go to standard attributes and ensure that the No blank lines checkbox is deselected.In our example,
51、 notice the bar code, which reserves space for the entire material number field (this field is 18 characters long). If you do not use all 18 characters and do not want to waste space, delimit the field length by using the output length formatting option. The text editor line is ,<B3>&VBDPA
52、-MATNR(8)&</>In a numerical bar code, some scanners cannot read special characters. For these scanners, omit the special characters inserted by SAPscript during formatting. An example of a special character is the delimiter for “Thousands” that is used for some numerical fields. See append
53、ix A for more information on formatting options.1818. Activate the form.1.2.3.4 Using Boxes, Lines, and ShadingSAPscript提供了在文檔中使用Boxes, frames, lines, shading的文本命令:l BOX命令用來畫一個框或者是垂直、水平直線;l POSITION命令用來指定框或者線的起始點;l SIZE命令用來指定框的高度和寬度。下面分別加以說明。1) BOX 命令語法/: BOX XPOS YPOS WIDTH HEIGHT FRAME INTENSITY作用
54、:在指定的位置用指定的尺寸畫框參數(shù):對XPOS、YPOS、WIDTH、HEIGHT、FRAME中的每一個,必須指定值以及度量單位;指定INTENSITY為0-100之間的百分比數(shù),比如20。XPOS、YPOS相對于POSITION命令設定的值而言,框的左上角。缺?。篜OSITION命令設定的值下面的計算式用來計算page上的框的絕對位置:X(abs) = XORIGIN + XPOS Y(abs) = YORIGIN + YPOSWIDTH框的寬度,缺省為SIZE命令所設定的寬度值HEIGHT框的高度,缺省為SIZE命令所設定的高度值FRAME邊框,缺省為0,無邊框INTENSITY框的灰度比
55、,缺省為100度量值以及度量單位:度量值為數(shù)字,度量單位可以是下面幾種之一:· TW (twip)· PT (point) · IN (inch) · MM (millimeter) · CM (centimeter) · LN (line) · CH (character). 示例:/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15 /: BOX WIDTH '17.5' CM HEIGHT '13.5' C
56、M FRAME 10 TW /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW特別注意:如果度量值有小數(shù)位,必須用” '' ”號將度量值引起來。如上面的'17.5'等等。2) POSTION 命令語法:/: POSITION XORIGIN YORIGIN WINDOW PAGE作用:設置坐標原點,BOX命
57、令中的XPOS, YPOS參數(shù)會使用這個值。當window第一次啟動的時候,POSITION值就是window的左上角。參數(shù): XORIGIN、YORIGIN坐標系統(tǒng)原點 WINDOW設置左邊和上邊距匹配當前window PAGE設置左邊和上邊距匹配當前輸出page(XORIGIN = 0 cm, YORIGIN = 0 cm)示例:/: POSITION WINDOW Sets the origin for the coordinate system to the upper left corner of the window./: POSITION XORIGIN 2 CM YORIGIN '
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- GB/T 22068-2025汽車空調用電動壓縮機總成
- 新能源汽車動力電池及零部件檢測合同
- 商品分銷代理合同
- 承攬合同是何種類型合同
- 商業(yè)空間裝修設計合同2025
- 中保人壽個人養(yǎng)老金保險合同范本
- 兼職人員聘用合同(試聘版)
- 正式合同樣本:電子產品供貨合同
- 礦產銷售合同
- 5 草船借箭(教學設計)2023-2024學年統(tǒng)編版語文五年級下冊
- GB/T 18216.1-2021交流1 000 V和直流1 500 V及以下低壓配電系統(tǒng)電氣安全防護措施的試驗、測量或監(jiān)控設備第1部分:通用要求
- GB/T 17758-2010單元式空氣調節(jié)機
- FZ/T 60011-2016復合織物剝離強力試驗方法
- 剖宮產護理查房完整版課件
- 《人文關懷與優(yōu)質護理》醫(yī)院培訓課件
- 世界文明與世界宗教課件
- 50097馬工程-國際組織(第二版)全套課件
- 北師大版二年級數(shù)學下冊導學案全冊
- 《愛國主義教育》開學第一課課件
- 龍門吊重點技術規(guī)格書
- JJG(交通)054-2009 加速磨光機檢定規(guī)程-(高清現(xiàn)行)
評論
0/150
提交評論