77范文网 - 专业文章范例文档资料分享平台

Generating Reports and PDFs From a Web Application(2)

来源:网络收集 时间:2018-12-17 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

Figure 4: Trip Report

1. In the Projects window, expland Web Pages.

2. Right-click the resources node and choose New > Folder. 3. Type images in the Folder Name text box and press Enter.

4. Right-click the following image and use your browser's command for saving the image to your

disk. Save the image in the path-to-web-project/TravelReport/web/resources/images folder.

Figure 5: Company Logo

5. Click the Files header, which appears next to the Projects header, to view the Files window. 6. In the Files window, expand TravelReport.

7. Right-click the src node and choose New > Folder. 8. Type reports in the Folder Name text box and press Enter.

9. Expand the src node, right-click the reports node, and choose New > File/Folder.

10. Select Resources in the Categories panel, select Empty File in the File Types panel, and click

Next. 11. Type TripReportByPerson.jrxml in the File Name text box and press Enter. 12. The new file opens in the XML editor.

13. Copy the following XML tags and and paste into the empty XML file.

Code Sample 2: JasperReport Template TripReportByPerson.jrxml

PUBLIC \

\