[Solved] Windows Form Crystal Report after creating Setup Error: File not found

Last Reply 3 months ago By smile

Posted 3 months ago

I am displaying data in crystal report using windows form. It is working fine before creating the setup project. But after creating a setup project it is not showing the file. It displays the message "File not found". When I check it again in development mode then it is working fine.

Why I am seeing this issue??

How to fix it???

You are viewing reply posted by: smile 3 months ago.
Posted 3 months ago

I found the solution like that

I have created a separate folder outside the Project Folder / Application Folder with the name Customize which is in D:\  and put all the crystal reports in that folder. Path is like that

string reportFullPath = @"D:\Customize\rptStuContact.rpt";

After the creation of the setup file, I installed the setup and then load my crystal report from this path 

string reportFullPath = @"D:\Customize\rptStuContact.rpt";

now it is loading successfully.