I am using a crystal reports through crystal report viewer server side control in a webform.
I am using a webform because the crystal report viewer provides an easy way to export to PDF and to Excel.
My problem is that when I deploy to the server, the crystal report .rpt file does not get copied to the target folder.
My solution structure looks like this:
Solution
|-Content
|-Controllers
|-Models
|-Views
|-etc...
|-Reports
|-Default.aspx
|-Report.rpt
On the server, the Report.rpt file is missing after I publish.
If you right click on the Report.rpt file in Solution explorer and view the properties, make sure that the "Build Action" is set to Content. I believe by default it is set to Embedded resource.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With