本文整理汇总了Java中org.eclipse.birt.report.engine.api.EXCELRenderOption类的典型用法代码示例。如果您正苦于以下问题:Java EXCELRenderOption类的具体用法?Java EXCELRenderOption怎么用?Java EXCELRenderOption使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EXCELRenderOption类属于org.eclipse.birt.report.engine.api包,在下文中一共展示了EXCELRenderOption类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.EXCELRenderOption; //导入依赖的package包/类
public IRenderOption getPreferredRenderOption( )
{
EXCELRenderOption renderOption = new EXCELRenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "xls" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption( optionValue.getName( ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:22,代码来源:ExcelEmitterDescriptor.java
示例2: renderExcelReport
import org.eclipse.birt.report.engine.api.EXCELRenderOption; //导入依赖的package包/类
@Override
public void renderExcelReport(String reportName,
Map<String, Object> parameters, OutputStream out)
throws BirtReportException {
try {
IRunAndRenderTask runAndRenderTask = createRunAndRenderTask(
reportName);
injectParameters(parameters, runAndRenderTask);
EXCELRenderOption excelRenderOptions = new EXCELRenderOption();
excelRenderOptions.setOutputFormat("xlsx");
excelRenderOptions.setOutputStream(out);
excelRenderOptions.setEnableMultipleSheet(true);
// TODO idueppe - should be configurable from cockpit
excelRenderOptions.setHideGridlines(true);
// TODO idueppe - should be configurable from cockpit
// excelRenderOptions.setOfficeVersion();
// TODO idueppe - should be configurable from cockpit
excelRenderOptions.setImageHandler(new HTMLServerImageHandler());
runAndRenderTask(runAndRenderTask, excelRenderOptions);
} catch (EngineException | IOException e) {
throw new RenderReportException("excel", reportName, e);
}
}
开发者ID:interseroh,项目名称:report-cockpit-birt-web,代码行数:26,代码来源:BirtReportServiceBean.java
示例3: getPreferredRenderOption
import org.eclipse.birt.report.engine.api.EXCELRenderOption; //导入依赖的package包/类
public IRenderOption getPreferredRenderOption( )
{
EXCELRenderOption renderOption = new EXCELRenderOption( );
renderOption.setEmitterID( getID( ) );
renderOption.setOutputFormat( "ods" ); //$NON-NLS-1$
if ( values != null && values.length > 0 )
{
for ( IOptionValue optionValue : values )
{
if ( optionValue != null )
{
renderOption.setOption(
getRenderOptionName( optionValue.getName( ) ),
optionValue.getValue( ) );
}
}
}
return renderOption;
}
开发者ID:eclipse,项目名称:birt,代码行数:23,代码来源:OdsEmitterDescriptor.java
示例4: buildRenderOptions
import org.eclipse.birt.report.engine.api.EXCELRenderOption; //导入依赖的package包/类
@Override
protected RenderOption buildRenderOptions(HttpServletRequest request, HttpServletResponse response) throws IOException {
EXCELRenderOption opt = new EXCELRenderOption();
opt.setOutputFormat("xlsx");
opt.setOutputStream(response.getOutputStream());
return opt;
}
开发者ID:kewne,项目名称:spring-birt,代码行数:8,代码来源:XlsBirtReportView.java
示例5: testStartSheet
import org.eclipse.birt.report.engine.api.EXCELRenderOption; //导入依赖的package包/类
@SuppressWarnings("nls")
public void testStartSheet( )
{
EXCELRenderOption renderOption = new EXCELRenderOption( );
try
{
new File( WORKSPACE_DIR ).mkdir( );
renderOption.setOutputFileName( WORKSPACE_DIR + "/report.xls" ); //$NON-NLS-1$
EngineEmitterServices services = new EngineEmitterServices( null,
renderOption, null );
ExcelContext context = new ExcelContext( );
context.initialize( services );
ExcelWriter writer = new ExcelWriter( context );
writer.start( null, new HashMap<StyleEntry, Integer>( ),
new HashMap<String, BookmarkDef>( ) );
writer.startSheet( "dataview" );
writer.startRow( );
writer.outputData( 1, 1, SheetData.NUMBER, 1 );
writer.endRow( );
writer.endSheet( );
writer.end( );
}
catch ( Exception ex )
{
fail( "EXCEPTION not expected" + ex.toString( ) );
}
}
开发者ID:eclipse,项目名称:birt,代码行数:30,代码来源:ExcelWriterTest.java
注:本文中的org.eclipse.birt.report.engine.api.EXCELRenderOption类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论