def get_filename(self, filename): return '%s%s%s' % (self.base_dir, os.sep, filename) class ReportManager def get_report_dir(self, report_id): return '%s%s%s' % (self.base_dir, os.sep, report_id) reportManager = ReportManager() def create_by_pb(file): (report_id, report) = reportManager.create_report() (report_id) report.set_icon(value) def add_screenshots(report_id, screenshots): report = reportManager.get_report (report_id) report.add_screenshots(screenshots) def done(report_id): report = reportManager.get_report
在默认网站中新建虚拟目录Reports,本地路径是C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportManager