热情软件屋

 

如何打印全部text字段内容


编号:QA001947
建立日期: 1999年11月2日 最后修改日期:1999年11月2日
所属类别:

杨禹道:
    PowerBuilder
    Windows 98
    某表中含text字段,生成数据窗口后,为了完整显示其内容,对该字段设置滚动属性,但
    打印时只能打印显示部分,请问如何打印全部text字段内容。多谢!

回答:

    《PB ONLINE BOOK》中有详细的资料。
    主要内容为:
    1、为该字段取消“Auto Horz Scroll”,选中“Autosize Height”。
    2、设置该Band“Autosize Height”属性。
    我试过打印完全可以。
    
    Specifying variable-height detail bands in a DataWindow object
    
    Sometimes DataWindow objects contain columns whose data is of variable length. For example, a Memo column in a table might be a character column that can take up to several thousand characters. You don't want to reserve space for that much information for the column in the detail band, since it would make the detail band's height very large, meaning the users could see few rows at a time.
    
    Instead, you want the detail band to resize based on the data in the Memo column. If the Memo column has only one line of text, you want the detail band to be one line. If the Memo column has 20 lines of text, you want the detail band to be 20 lines high.
    
    To provide a detail band that resizes as needed, you specify that the variable-length columns and the band have Autosize Height.
    
    To create a resizable detail band in a DataWindow object:
    1Select Properties from the popup menu of a column that should resize based on the amount of data.
    2Select the Autosize Height checkbox on the Position property page and click Apply.
    3Clear the Auto Horz Scroll checkbox on the Edit property page and click OK.PowerBuilder will wrap text during preview instead of displaying text on one scrollable line.
    4Repeat steps 1 to 3 for any other columns that should resize.
    5Select Properties from the detail band's popup menu.
    6Select the Autosize Height checkbox and click OK.During preview, the detail band will resize based on the contents of the columns you defined as having Autosize Height.

此问题由JiangAn回答。

 
把这个问题推荐给朋友
   
   
您的意见类别
您的名字
您的电子邮件
您的建议(请尽可能详细)
 
 

版权所有 1997-2008 热情软件屋
如果您有任何建议和意见, 请给我发个电子邮件 askpro@china-askpro.com
Web Designed by ZebraStudio