Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 将BIRT报告导出为PDF格式时在单元格上换行文本_Eclipse_Reporting_Birt - Fatal编程技术网

Eclipse 将BIRT报告导出为PDF格式时在单元格上换行文本

Eclipse 将BIRT报告导出为PDF格式时在单元格上换行文本,eclipse,reporting,birt,Eclipse,Reporting,Birt,我有下一个问题,我需要将此文本包装在此单元格上,但显示为裁剪 例如: 但全文是:0123456789ABCDEFGH 仅显示:0123456789ABCD 如何将文本包装在单元格上?我使用Eclipse Neon上的BIRT Report 4.6基于: 如果您正在使用资源,请在其中添加此函数。如果没有,您可以复制并使用函数中的代码 变量longtr是要包装的长字符串(0123456789ABCDEFGH) 宽度是你想要为你的字符串授权的大小,所以你的宽度是15 /** * Format a

我有下一个问题,我需要将此文本包装在此单元格上,但显示为裁剪

例如:

但全文是:0123456789ABCDEFGH 仅显示:0123456789ABCD

如何将文本包装在单元格上?我使用Eclipse Neon上的BIRT Report 4.6基于:

如果您正在使用资源,请在其中添加此函数。如果没有,您可以复制并使用函数中的代码

变量longtr是要包装的长字符串(0123456789ABCDEFGH) 宽度是你想要为你的字符串授权的大小,所以你的宽度是15

/** 
* Format a long String to be smaller and be entirely showed
*
*@param longStr 
*             the String to split
*@param width
*               the character number that the string should be 
*
*@returns the string splited
*/
function wrap(longStr,width){ 
    length = longStr.length; 
    if(length <= width) 
        return longStr; 
    return (longStr.substring(0, width) + "\n" + wrap(longStr.substring(width, length), width)); 
 } 
/**
*将长字符串的格式设置为更小并完全显示
*
*@帕拉姆·朗斯特尔
*要拆分的字符串
*@参数宽度
*字符串应为的字符数
*
*@返回被拆分的字符串
*/
函数换行(长,宽){
长度=longtr.length;
如果(长度)