'RDLC Actions:set up a textbox to open file on disk by providing the relative path to file,once the report is exported to PDF using localreport.Render
I am trying to export the RDLC report as PDF with links to a file in a disk. I am not using the Report Server to export the report to PDF, But I am using the programmatic way to export to PDF using LocalReport.Render("PDF") API.
I am able to setup textbox actions to open a file in the disk by providing the complete path to the file. But I am not able to set up textbox actions to open file in a disk by providing the relative path. I will not always know the absolute path, I will always know the relative path.
I have tried the following to set up relative path. Textbox properties -> Actions -> Jump to URl with following values
- "//Sample.pdf"
- "\Sample.pdf"
- "file:\\Sample.pdf"
Any suggestions around how to set up links to a relative path in RDLC would be helpful.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
