简体   繁体   中英

run an ssrs report using excel vba and save as pdf

I need to run and save several hundred invoices for an audit.

The invoices are generated using SSRS.

Is there a way from excel to have a column of invoice numbers and automate the running of the SSRS invoice report for each invoice number and save it as a pdf???

Many thanks

If you want to create the pdfs from Excel, you can use a function HYPERLINK to turn the string into a hyperlink.

The part &rs:Format=PDF will save the report directly to a pdf.

=HYPERLINK("http://MyServer/ReportServer/Pages/ReportViewer.aspx?/YourFolder%2fInvoice+Report&rs:Format=PDF&InvoiceNumber=" & A2)

在此处输入图片说明

  • if there are any report parameters that do not have a default, they must be passed in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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