




已阅读5页,还剩51页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1 SAPscript Forms .3 1.1 SAPscript 的 组成 .3 1.2 Forms: 组件和技术 .3 1.2.1 概念 3 1.2.1.1 修改 SAP Forms 3 1.2.1.2 Forms:概念 4 1.2.1.3 Client 和语言版本:概念 .4 1.2.2 组件 4 1.2.2.1 Header Data4 1.2.2.2 Paragraph Formats and Attributes6 1.2.2.3 Character Formats and Attributes 8 1.2.2.4 Windows.8 1.2.2.5 Pages(页面) 10 1.2.2.6 Pages window(页面窗口 )11 1.2.2.7 Text Elements (文本元素) .12 1.2.3 技术 15 1.2.3.1 在 Form 中包含图形 .15 1.2.3.2 在 FORM 中包含公司 logo 17 1.2.3.3 在 form 中打印条形码 24 1.2.3.4 Using Boxes, Lines, and Shading.27 2.SAPscript Control Commands.30 2.1 Control Commands 语法 .30 2.2 Control Commands 种类 30 2.2.1 显示分页:NEW-PAGE .30 2.2.2 限制分页:PROTECT 31 2.2.3 下一个 main window 命令: NEW-WINDOW31 2.2.4 给文本 symbol 分配值:DEFINE 31 2.2.5 格式化日期字段:SET DATE MASK.32 2.2.6 格式化 Time 字段:SET TIME MASK .33 2.2.7 设置与国家相关的格式:SET COUNTRY 33 2.2.8 设置 symbol 位:SET SIGN34 2.2.9 Initializing Numbered Paragraphs:RESET .34 2.2.10 包含其他文本:INCLUDE 35 2.2.11 改变样式:STYLE .35 2.2.12 格式化地址:ADDRESS 35 2.2.13 在 main window 中设置 Header Text:TOP .37 2.2.14 在 main window 中设置 Footer Text:BOTTOM 37 2.2.15 条件文本:IF 37 2.2.16 条件文本:CASE .38 2.2.17 调用 ABAP 子程序:PERFORM .38 2.2.18 合计:SUMMING 40 3.SAPscript Symbols40 3.1Syntax of Symbols 40 3.2System Symbols 41 3.3Program Symbols 42 3.4Standard Symbols43 3.5Text Symbols.43 4.Formatting Options43 4.1Offset(偏移量) 43 4.2Output Length .44 4.3 Omitting the Leading Sign .44 4.3 Omitting Leading Zeros .45 4.4 Space Compression 45 4.5 Number of Decimal Places.45 4.6 Omitting the Separator for Thousands.46 4.7 Specifying an Exponent for Floating Point Numbers 46 4.8 Right-Justified Output 46 4.9 Fill Characters 47 4.10 Suppressing Output of Initial Values .47 4.11Local Dates(Currently Only for Japan).47 4.12Changing the Value of a Counter47 4.13Preceding and Subsequent Texts(Pre-Text/Post-Text) .48 5.SAPscript Function Modules 49 5.1OPEN_FORM .51 5.2CLOSE_FORM.52 5.3WRITE_FORM.52 6 一个完整的例子 53 SAP Script 编程指南 稀世软件系统(上海)有限公司 3/56 1 SAPscript Forms 1.1 SAPscript 的组成 SAPscript 由下面五个部分组成: 1)编辑器用来编辑一行文本。如果用户决定维护与应用程序相关的文本,应用程序事务会自动调用这个文本编 辑器, 2)styles 和 forms,用来打印 layout。 3)中央输出模块设计器。它的任务是根据相应的格式信息为某种外部设备准备文本,这些格式信息来自于分配 了文本的 style 和 forms。 4)程序接口,通过将 SAPscript 组件包括在程序中来控制 form 的输出。 5)用来存储文本、styles、forms 的数据库表格。 可以用下图来表示: 1.2 Forms: 组件和技术 1.2.1 概念 1.2.1.1 修改 SAP Forms 如果需要修改 SAP Forms,可以象下面这样设置开发环境: 确信客户端没有标准的 SAP Forms 拷贝你需要的标准 SAP Forms 到你的开发环境中 重新命名,最好以 Y 或者 Z 开头 为了使更改生效,需要修改相关的 SAP 打印程序使用经过你修改后的 Forms,可以使用 SAP IMG 来进行。 1.2.1.2 Forms:概念 Forms 用来控制文档中的页面 layout 和文本格式。在将某一文档输出到打印机或者屏幕的时候,必须将一个 Form 分配给该文档。如果没有指定,就使用系统默认的 Form。 在 SAP 应用中,通常利用 Forms 来定制诸如发票、支票之类的特殊文档的 layout。这些 Forms 用来描述文 档页面中的信息结构,比如地址抬头、item 行、页脚等等。 有两种方法来格式化 Forms 中的的文本: 在标准的 SAPscript 文本处理器中( Tools Word processing Standard text),可以为一个文档选择一 Form。然后在 Form 的 Main 窗口中输入文本并格式化。例如,我们为信件选择一个 Form,然后在 Main 窗口 中输入信件内容,当打印该信件时,信件内容随同其他信息一并打印出来(比如抬头、页脚等等) 。 通过 SAP 应用中的打印程序生成文档。该打印程序使用一个 Form,并提示用户输入相关文本信息。 1.2.1.3 Client 和语言版本:概念 Forms 和 Styles 是与客户端相关的,也就是说,在哪一个客户端创建的 Form 和 Styles 只能在这个客户端使用。 同样的,Forms 和 Styles 也是语言相关的,在 Forms 和 Styles 中的定义的文本只能用一种语言来进行定义。可 以用 SAP 翻译工具来翻译这些 Forms 和 Styles Client 000 缺省:SAPscript 给在 client000 中的 Forms 和 Styles 赋予一种特殊状态。 如果在打印一个文档的时候,文档中定义的 Forms 和 Styles 在当前客户端不可用,则 SAPscript 就在 client000 中检查所定义的 Forms 和 Styles,如果找到,就利用 client000 中的来进行打印。SAP 标准 Forms 和 Styles 总是存储在 client000 中。可以通过拷贝这些标准 Forms 和 Styles 到当前客户端并重新以 YXXX 或者 ZXXX 命名加以使用。 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. 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 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 Data Header Data 由全局数据,比如 page 格式、page 方向、初始字体等组成。在 Header Data 的 Basic settings 标签中可以对这些数据进行维护。Header Data 还包括 form 的名字、描述、类 以及状态。 Header Data 的操作画面如下: SAP Script 编程指南 稀世软件系统(上海)有限公司 5/56 一个例子: 下图是简单的发票的例子,是利用 SAPscript Form 创建的。每一个 form 由一个 start page 和任意数量的 subsequent pages 组成,这依赖于字符文本的长度。在这个例子中,start page 由地址栏窗口、包含参考消息的信息窗口、包含公司相关数据的窗口以及包含真正业务数据的窗 口(业务数据也显示在 subsequent page 中)和包含页码的窗口组成。 包含业务数据的窗口不同于其他窗口。无论什么时候,只要一页数据显示不下时,会自动显示 在 subsequent 中。因而,这个窗口控制换页,而且这种窗口只能有一个,在 SAPscript form 中 称这种窗口为 main window. 如下图所示: 1.2.2.2 Paragraph Formats and Attributes 在 SAPscript 中,Paragraph(段落)就是使用某种格式和相应属性的一种格式设置。通过应用不同的段落属性 组来简化文本处理,这些属性组包括: 标准属性 字体 Tabs Outline 对一个段落标志命名有下面的约定束成: 段落名由一到两个字符组成; 第一个字符必须是字母,第二个字符可以是字母、数字或者空格;特殊字符无效; 段落格式在 Description 域中必须进行标识。 段落格式设置画面如下: SAP Script 编程指南 稀世软件系统(上海)有限公司 7/56 下面分别对前面的属性组加以说明: 1) 标准属性 在标准属性组中,可以设置在段落格式中需要用到的通用属性,包括: 描述信息(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 Paragraph Formats 可以根据需要为每个段落格式定义 tabs 的位置,在 pc editor 中两个”,”symbol 代表段落中的一个 tabs。可以使 用下面的度量单位来定义 tabs 的位置: CH (字符) CM (厘米 ) MM(毫米) PT(点阵) TW(1/20 点) 4) Outline 用来指定文档中的层次和目录结构。具体请参见 sap online help 1.2.2.3 Character Formats and Attributes Character formats and Attributes 可以用来格式段落中的一段文字。命名方式与段落一样。字符属性组可以是: Standard Font Standard 属性包括 marker(标记或者超连接 )、Barcode、Protected、Hidden、Superscript 等。 Font 属性与段落中的 Font 属性一样使用。 1.2.2.4 Windows Windows 在 Form 维护中定义。代表页面中的一个区域(Page Window) ,每一个 Form 中至少定一个 window, 否则,SAPscript 不能格式化文本。 可以为 window 定义类型和名字,注意在每一个 Form 中只能有一个 Main window。 在定义一个 Form Window 的时候,必须选择一个窗口类型。 下面是可以使用的窗口类型: Main Window 每一个 Form 必须有一个 MAIN 类型的窗口,这样的窗口叫做 Main Window。在 SAPscript 中主窗口具有 下面的意义: 1) 控制换页; 2) 包含可以跨越多个 pages 的内容; 3) 可以在 page window 中固定文本元素,比如列标题。 一旦 main window 内容填满后,就会自动换页,在下一页的 main window 中继续输出余下的内容。而且 格式保持不变。 注意:如果 page 中没有 main window,系统会隐含处理 page 中的其他 window 以及 subsequent page,在 这种情况下, SAPscript 会在处理完(最多)三个 subsequent pages 后终止处理。 为了输出 header line 或者 totals,需要指定 main window 中的输出区域(output area)。 为了在页面(page)中的 main window 中进行文本输出,可以选择三种类型的区域之一。 Main window 中 的顶层区域叫 TOP Area;下层区域叫 BOTTOM Area;它们之间的区域叫做 BODY Area。TOP Area 和 BOTTOM Area 的大小依赖于各自的文本内容, BODY Area 的大小相应的发生变化。 如下图所示: SAP Script 编程指南 稀世软件系统(上海)有限公司 9/56 在 Form 输出时,可以对这三个区域的内容进行动态修改。 SAPscript 在包含 main window 的 Form 的每一页上 自动输出这些区域。当在调用函数模块 WRITE_FORM 或者 WRITE_FORM_LINES 时,TYPE 参数决定在哪一个 区域输出文本,如果在调用时,没有指定 TYPE 参数,系统默认输出 BODY 区域的内容。 比如下面的图示以及代码: VAR Window(可变窗口) 可变窗口的内容在每一个 page 中都要处理一次。系统输出仅仅适合窗口尺寸,超出窗口的文本被自动截 掉;可变窗口也不会触发换页处理。不象 CONST Window,page window 如果声明为 VAR Window,意味 着在不同的 Form pages 中可以有不同的尺寸。 注意:在窗口内容处理方面,系统并不区分 CONST Window 和 VAR Window,唯一的区别就是在全部 Form 中具有同样尺寸。 CONST window(常量窗口) 从版本 4.0 开始,在系统内部处理中,并不区分 CONST Window 和 VAR Window,所以,如果创建一个 新的 window,总是使用 VAR 类型的。 1.2.2.5 Pages(页面) 对每一个 Form 必须定义至少一个 page,而且必须在 Form 的 header 属性标签中指定“first” page。否则,不 能进行文本格式化。另外,应该指定当到达第一页的末尾的时候,接下来的一页是哪页。如果没有指定的话, 输出就在当前页的末尾终止。 为了定义一个 page,需要为它指定名字和属性: 下一页的名字 page 的计数模式 page 数的数字类型 资源名字 打印模式 文档的单个 pages 通常有不同的 layouts:发票的第一页与接下来的页不一样,在这些页上不需要重复通用信 息,比如地址或者客户数据,象窗口中的文本元素一样,page 也有名字,在有需要换页的情况下,需要通过这 些名字来指定下一页,如果想文档的样式变化越多,就需要在 SAPscript 中定义越多的 page。 下图说明如何利用事务代码 SE71 维护一个 page。在 WIN32 操作系统中可以利用 Form Painter。 SAP Script 编程指南 稀世软件系统(上海)有限公司 11/56 1.2.2.6 Pages window(页面窗口) Pages window 就是定义在页面中的窗口,这里的页面和窗口都是已经预先定义好的,定义 pages window 的主要 任务就是将窗口和页面关联起来,一个页面中可以有多个窗口。 在定义 pages windows 时,窗口的名字与 page 的名字关联起来。必须指定分配给 page 的窗口的位置和大小。 通过指定左边和上边距来定义窗口的位置,指定其高度和宽度来定义窗口的大小。 注意: 1)在所有 pages 中的 main window 的宽度必须相同。其他的窗口类型在不同的 pages 中可以有不同的 尺寸和位置。 2)为了打印多列,需要在一个 page 中定义多个 main window。因为文本条目是连续的,一旦第一个 main window 被写满之后,输出可以在第二个窗口继续。 当定义 windows 和 pages 的时候,可以不必指定位置和输出的文本间隔。为了指定这些值,可以直接创建一 个 page window。 当定义 page window 时,需要指定: 显示在 page 上的 window window 的尺寸(包括大小、宽度、高度) 页面中各个 window 的位置 如下图所示: 1.2.2.7 Text Elements (文本元素) SAPscript 将 form 中的单个文本组件称之为 Text Elements(文本元素),为了获得较好的结构和可读性, 可以为 form 中的每一个 Text Elements 分配一个固定的名字,打印程序通过这些定义的名字来访问 Text Elements。 Text Elements 与 window 相关,就是说,打印程序仅仅能够调用定义在窗口中的文本元素。下图显示了 定义在 main window 中的 HEADING 和 FLIGHTIST 两个 Text Elements。 SAP Script 编程指南 稀世软件系统(上海)有限公司 13/56 可以将这里定义的 Text Elements 和 ABAP 程序中(比如 TEXT-001)定义的文本相比较来学习,但是, Text Elements 比 ABAP 程序中(比如 TEXT-001)定义的文本更灵活,主要表现在: Text Elements 的长度没有限制; Text Elements 可以包含变量符; 在一个 Text Elements 中可以使用几个不同的格式选项; 在 Text Elements 中可以使用 SAPscript 控制语句。 在 window 中,可以使用两种不同的 Text Elements,一种叫做有名 Text Elements;另外一种叫做无名 Text Elements。 1) 有名 Text Elements 通过段落格式“/E”来识别有名 Text Elements,在行编辑器中,看起来象这样: 字符串代表 Text Elements 的名字,名字可以有 30 个长度,而且可以包含字母、数字、特殊 字符。名字后面接下来就是这个 Text Elements 的文本行。一个 Text Elements 在下一个 Text Elements 开始处结束。 注意: Text Elements 的名字仅仅在本地有效( LOCAL) ,即不同的窗口可以包含相同的 Text Elements 的 名字。 为了输出有名 Text Elements,必须在程序中(ABAP)使用函数模块 WRITE_FORM。 下图说明了发票中的列头 Text Elements。 2) 无名 Text Elements 无名 Text Elements 或者叫做缺省文本元素是这样的一些文本行和控制语句, 它们显示在相应 window contents 的起始处,没有“/E”段落格式。包括所有的行直到出现“/E” 段落格式,或者直到末尾,如果 中间没有其他“/E”标志出现,因此,在一个 window 中只能包括一个无名 Text Elements。 这两种 Text Elements 之间的区别在于: 对于有 Text Elements 来说,只有当系统显示调用函数模块 WRITE_FORM 时,才被输出;而对名 Text Elements,系统会自动处理。 Main window 中的 Text Elements 仅仅出现一次,它不会出现在包含 main window 的 form 的 subsequent page 中。 其它 window 类型(除 main window 外)的无名 Text Elements 每次都会出现。 下面的例说明了在 form 中的 ADDRESS window 的无名 Text Elements,这个 Text Elements 输出客户地址, ADRS_SENDER 标准文本仅仅在第一页显示(通过 IF AND CASE 语句可以控制) 。 SAP Script 编程指南 稀世软件系统(上海)有限公司 15/56 3) 激活 Text Elements 当函数模块 WRITE_FORM 的时候,可以通过设置 FUNCTION 参数的值在打印程序中激活窗口中的 Text Elements,FUNCTION 可以是下面的值: SET 用当前的值代替所有 window 中激活的文本元素 APPEND 将当前的 Text Elements 追加到激活的 Text Elements DELETE 从激活的 Text Elements 列表中删除当前的 Text Elements 注:激活 Text Elements 是指当当前 page 调用时,系统准备输出的 window Text Elements。 在 main window BODY 域中,APPEND 和 SET 具有相同的效果, DELETE 对其没有影响,在 TOP 和 BOTTOM 域中,与上面描述的相同。 1.2.3 技术 1.2.3.1 在 Form 中包含图形 这一节主要介绍在 form 中包括图形的技术,主要介绍如何在 form 中打印公司 logo 和如何打印条形码。 1) 在 form 中打印公司 logo 为了能够打印公司 logo,不管是在 form 中,还是在 PCL-5 打印机预定的宏中,下面的规则有助于选择 合适的方法: 如果不能够以 TIF6.0 的格式提供 logo,则公司 logo 应该在 PCL-5 打印机预定的宏中进行打印; 如果没有 PCL-5 打印机,则需要将公司 logo 包含在 form 中; 在其他任何情况下,将公司 logo 包含在 form 中。 如果在打印公司 logo 的时候,正确的参照了这里的说明,但还是没有能够正确打印出公司的 logo, 可能是因为你提供的 logo 的图形格式不是基于 TIF6.0 的,如果文件格式不正确,SAP 并不给出任何 错误信息。 下面介绍在 form 中包含公司 logo 的步骤: SAP Script 编程指南 稀世软件系统(上海)有限公司 17/56 1.2.3.2 在 FORM 中包含公司 logo Step-by-Step Guide Task 1 Convert your company logo into a SAPscript standard text. 1. Create your company logo with a graphic program and save it in the Baseline TIFF 6.0 format. In this guide, the filename is LOGO.TIF. 2. From the SAP main menu, choose Tools ABAP Workbench. 3. On the ABAP Workbench screen, choose ABAP Editor. 4. In the Program field, enter RSTXLDMC. 5. Choose Execute. 3 4 5 6. Determine the location of LOGO.TIF. 7. In the File 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 gray- 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. The upload may take a while. The result should be a protocol as shown. 11. At the end of the protocol, a Standard text 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. 7 8 9 10 12 11 SAP Script 编程指南 稀世软件系统(上海)有限公司 19/56 You can easily display the created standard text. 1. Choose Tools Word processing Standard text. 2. In the Text name field, 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 Guide Task 2 Include the 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. 2. 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. Choose Change. The synchronized screens of the Form Painter appear. 3 2 4 5. In the Design window, create a new window by choosing Create window form the form layout manipulation menu. The new window is automatically named Window1. 6. Activate Window1 and choose Rename window from the form layout manipulation menu. 7. Rename Window1 as LOGO. 8. Choose Execute. 5 6 8 7 SAP Script 编程指南 稀世软件系统(上海)有限公司 21/56 9. 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 specified in LN (line). 10. Activate the LOGO window and choose Edit window text from the form layout manipulation window. The PC Editor for the LOGO window appears. 9 10 11. In the PC Editor choose the Insert command button. The Insert Additional Information screen appears. 12. Select Command. 13. Enter INCLUDE ZHEX-MACRO- LOGO OBJECT TEXT ID ST in the command line. 14. Choose Continue. 11 12 13 14 SAP Script 编程指南 稀世软件系统(上海)有限公司 23/56 The 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. 17. Activate the changed form. Your company logo 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 pages: 15 17 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-Step Guide Task Define 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. 2. In the Form field, enter Z_9H_RVORDER01, and in the Language field, enter EN. 3. Select Character formats. 4. Choose Change. 2 3 4 SAP Script 编程指南 稀世软件系统(上海)有限公司 25/56 5. 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 the 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. 11. In the Design Window activate the Main window and choose Edit window text. 5 6 7 8 9 10 11 12. In the text editor, 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. 15. In the new line, enter ,&VBDPA-MATNR&. 16. Choose Back. 17. Confirm all the subsequent popup windows. The two commas, for the first tab, position the bar code under the material number. 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. To avoid overlapping, add blank lines before the line with the bar code. Use an 12 13 15 16 SAP Script 编程指南 稀世软件系统(上海)有限公司 27/56 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, 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 ,&VBDPA-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 appendix A for more information on formatting options. 18. Activate the form. 1.2.3.4 Using Boxes, Lines, and Shading SAPscript 提供了在文档中使用 Boxes, frames, lines, shading 的文本命令: BOX 命令用来画一个框或者是垂直、水平直线; POSITION 命令用来指定框或者线的起始点; SIZE 命令用来指定框的高度和宽度。 下面分别加以说明。 18 1) BOX 命令 语法 /: BOX XPOS YPOS WIDTH HEIGHT FRAME INTENSITY 作用:在指定的位置用指定的尺寸画框 参数:对 XPOS、YPOS 、WIDTH、HEIGHT、FRAME 中的每一个,必须指定值以及度量单位;指定 INTENSITY 为 0-100 之间的百分比数,比如 20。 XPOS 、YPOS 相对于 POSITION 命令设定的值而言,框的左上角。 缺省:POSITION 命令设定的值 下面的计算式用来计算 page 上的框的绝对位置: X(abs) = XORIGIN + XPOS Y(abs) = YORIGIN + YPOS WIDTH 框的宽度,缺省为 SIZE 命令所设定的宽度值 HEIGHT 框的高度,缺省为 SIZE 命令所设定的高度值 FRAME 边框,缺省为 0,无边框 INTENSITY 框的灰度比,缺省为 100 度量值以及度量单位:度量值为数字,度量单位可以是下面几种之一: TW (twip) PT (point) IN (inch) MM (millimeter) CM (centimeter) LN (line) CH (character). 示例: /: BOX WIDTH 17.5 CM HEI
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 办公汽车租赁合同2025年
- 中医护理门诊建设
- 2025至2030浴盐行业风险投资态势及投融资策略指引报告
- 增量备份与连续数据保护融合的技术研究-洞察及研究
- 2025至2030中国4,4双酚行业产业运行态势及投资规划深度研究报告
- 卧床病人自我护理
- 2025-2030钛合金粉行业市场供给分析及竞争格局与投资战略研究报告
- 2025-2030热塑性酯弹性体行业市场现状供需分析及重点企业投资评估规划分析研究报告
- 2025年度服装店长职位劳动合同范本:全新升级
- 二零二五年度城市景观绿化综合维护服务合同
- 建筑工程项目部各岗位职责
- 2023年龙岩市永定区区属国企招聘工作人员总考试试卷真题
- 儿童青少年生长迟缓食养指南(2023年版)
- 中国石油大学(北京)汇报答辩通用PPT模板-2
- 2023四川省成都市郫都区郫筒街道办事处公开招聘社区专职工作者16人笔试备考题库及答案解析
- 蒸压加气混凝土砌块抗压强度试验原始记录
- GB/T 35233-2017地面气象观测规范地温
- FZ/T 80003-2006纺织品与服装缝纫型式分类和术语
- 文献调研与分析课件
- HRBP深度解读PPT课件(详细版)
- 35kV变电站安全检查记录表
评论
0/150
提交评论