简体   繁体   English

如何在stimulsoft中获取所有报告图像的名称?

[英]How to get name of all report images in stimulsoft?

I use Stireport class in my project in order to generate some specific report photos by this. 我在项目中使用Stireport类,以便以此生成一些特定的报告照片。

report.Render(false);
string location = @"c:\Reports\test_report.jpg"
report.ExportDocument(StiExportFormat.ImageJpeg, location);

When my report is more than one page, first report image is saved with the name 'test_report' and other images are saved with other names. 当我的报告超过一页时,第一个报告图像将以“ test_report”名称保存,其他图像将以其他名称保存。 for example the second report image is saved with the name 'test_rep002' and the name of third image is 'test_rep003'. 例如,第二个报告图像以名称“ test_rep002”保存,第三个图像的名称为“ test_rep003”。 Now I want to get name of all of my report images after ExportDocument method. 现在,我想在ExportDocument方法之后获取所有报告图像的名称。
Note: I get report.RenderedPages collections but unfortunately I can't get any conclusion. 注意:我得到了report.RenderedPages集合,但是不幸的是我没有任何结论。

You can get the count of pages from the RenderedPages collection. 您可以从RenderedPages集合中获取页面数。 The first name of the image will be as you set and all other will have 002, 003, 004 and so on. 图像的名字将与您设置的名称相同,所有其他名称将为002、003、004,依此类推。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM