Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7836213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:01:46+00:00 2026-06-02T14:01:46+00:00

I have a WPF billing solution that is deployed using ClickOnce for more than

  • 0

I have a WPF billing solution that is deployed using ClickOnce for more than 500 users, CrystaReports2010 were used for reporting, 85% of the users have WindowsXP installed on their machines 🙁

The Crystal Reports works just fine on the WindowsXP machines until the user exports a report with the built-in export button in the Crystal Reports Viewer, if he did this the export process complete successfully but he is not able to open any other report in the solution until he restarts the application.

Export Button

This is the error when trying to open a new report after the export:

The Error Message

I save the reports in my solution as content external resources outside the application .exe file, and I load them on demand, something like this:

var report = new ReportDocument();
report.Load(@"Reports\MyReport.rpt");

I made sure that after the user close a report to close and dispose of the report document object, so no memory leaks or exceeding the max number of open reports.

If I changed my implementation so that I save the reports inside my solution as embedded resources, the problem is solved, but this is not an option because the reports are relatively big in size (200KB-450KB), it will be a big DLL file that will be downloaded to the clients through ClickOnce whenever we release a new version that has any change to any report!. Another variation is to group each let’s say four reports into one DLL, and still the same problem (1MB-2MB is still a big chunk). Knowing that we have a lot of reports and we get frequent change request for these reports according to changes in our client’s policies. Please Help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T14:01:50+00:00Added an answer on June 2, 2026 at 2:01 pm

    At last, I found the solution 🙂
    The problem was that when you export a Crystal Report with the default export button provided by the Crystal Reports viewer, the export button changes the current working directory of the application to the export location!!! (strange behavior!!) and that is why the following line wont work anymore:

    report.Load(@"Reports\MyReport.rpt");
    

    So I changed this line to the following:

    report.Load(AppDomain.CurrentDomain.BaseDirectory + "\\" + @"Reports\MyReport.rpt");
    

    And it worked just like magic 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have WPF Span that is used as a source to a TextBlock. I
I have a WPF application for product purchase billing. My client wants that app
Suppose you have WPF Window composed of many elements that are using DataTemplates /
I have a WPF application that has several modal window used for various purposes.
I have WPF C# application that communicate with a PLC (i.e. write/read Omron PLC's
I have a WPF App that implements a ListView. I would like to show
I have a WPF application (.NET 3.0, VS2008) that displays data in a tab
I have WPF app that processes a lot of urls (thousands), each it sends
I have WPF window that uses a dockpanel and the menu control. I have
I have WPF App, that needs to be update some data , after computer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.