I have created a crystal report and would like to load it to ReportDocument. i.e. the .Load(path) method. The build action for the .rpt is resource. The .rpt file is in the same folder as the .vb file trying to load it.
If I specify the direct path such as "C:/PhotoCrystalReport.rpt" it works but I would like to specify the path where the .rpt will be stored as a resource, it cannot find the file then. I tried the below code but it didn't work (exact same thing worked for a image resource but not for .rpt)
Dim cryRpt As New ReportDocument
cryRpt.Load("pack://application:,,,/fstransaction;component/View/Report/PhotoCrystalReport.rpt")
Also tried,
cryRpt.Load("PhotoCrystalReport.rpt")
So, is there any way I can point to the location of this .rpt as a resource?