Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB Windows Application VB.NET , +
i have created one windows application and one of my page i created one report genetaing function using crystal report. It is working fine in my system while am running the code.
But after installing the published application in my system it is not working.Error with report
below is the cosde which am using to set crystal report source
Dim Report As New ReportDocument
Report.Load(path) 'path am getting using application.executepath
reportviewer.ReportSource = Report
but after installing the application i couldnt find the report file (.rpt) in application installed folder(c\programfiles\application).
Why this report is not coming here?
Because of this am getting error that 'failed to load report' (Problem with Report.Load(path) because here report.rpt is not available in application folder )
What is the soltion here?
Posted 3-Jun-13 20:57pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

1. you should pack report file (.rpt file) with setup
2. set path varible (using reflection) not using application.executepath
Happy Coding!
Smile | :)
Kavitha le at 4-Jun-13 2:05am
Thanks but could you please tell me how to use this (using reflection) ??
Aarti Meswania at 4-Jun-13 2:11am
visit link
Note ignore merge module
but add prerequiites
and use Add file option by right click on setup project then Add all .rpt files you created
then build
in setup project debug folder you will see setup file and folders which was selected for prerequisite
Kavitha le at 4-Jun-13 2:19am
Thank u.....
Aarti Meswania at 4-Jun-13 2:46am
Glad to help you! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 495
1 Sergey Alexandrovich Kryukov 424
2 OriginalGriff 360
3 Abhinav S 250
4 CHill60 240
0 Sergey Alexandrovich Kryukov 10,102
1 OriginalGriff 9,495
2 Peter Leow 5,241
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,076

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 4 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100