uploadTemplateForReport() Method

In ReportService, use the uploadTemplateForReport() method to upload a template to a report definition in the catalog.

Signature

boolean uploadTemplateForReport(String reportAbsolutePath, String templateName, String templateType, String locale, byte[] templateData, String userID, String password);

Parameters for uploadTemplateForReport() Method

Parameter Description

String reportAbsolutePath

The path to the report to which to upload the template. For example: /HR Manager/Employee Reports/Employee Listing.xdo

String templateName

The file name of the template to upload.

String templateType

The template type. Valid values are:

  • csv (CSV)

  • eText (eText template)

  • excel (Microsoft Excel)

  • excel2000 (Microsoft Excel 2000)

  • flash (Adobe Flash)

  • html (HTML)

  • mhtml (MIME HTML)

  • pdf (Adobe PDF)

  • pdfz (eBook)

  • ppt (Microsoft PowerPoint)

  • rtf (Rich Text Format)

  • text (Text)

  • txml (Transformed XML)

  • xml (XML)

  • xpa (Analyzer template)

  • xpt (BI Publisher template)

  • xslfo (XSL-FO style sheet)

String locale

The locale to assign to the template (for example, en_US).

byte[] templateData

The contents of the template file to upload.

String userID

Specifies the user name.

String password

Specifies the password for the user name.