Skip to Content
avatar image
Former Member

How do you avoid an "Invalid Section Error" running a report in ,Net?

Our company uses Crystal reports to generate a large number of complex reports. We currently use an older version of Crystal Reports; Crystal Reports XI. We can automate this process in .Net for some of our reports. When we try to run our more complex reports in .Net, we are unable to load them in our application. The error that we get is that the report has an "Invalid Section". This is true even though the reports work properly when run from Crystal Reports.

I wasn't able to find a satisfactory explanation for this behavior.

We are considering upgrading to the most recent version of Crystal Report and the Crystal Decisions library. If we make these upgrades, will we be able to load these reports into our .Net application without this invalid section error?

Thank you,

Demetrius

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 02, 2017 at 02:18 PM

    Hi Demetrius,

    XI is not supported any more and therefore not current OS aware.

    You can get the latest CR for VS .NET parts from here:

    https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

    First link to install onto your VS 2010 -> 2015 DEV PC all others are for Redist only, do not install them on your DEV PC.

    If you search for KBA 2163438 and the link on the download page to get a Parameter test app with log on capabilities you can test it in my test app to see if it works.

    Sections are based on printer settings, if no printer is selected then it uses usp10 and gdiplus dll's to format the report. In the newer versions of CR Designer there is an option to Dissociate the exact printer from the report so it uses the family of printer properties rather than a specific printer. Try enabling that option and using a real printer. Printers must be installed on the PC running CR software.

    If that doesn't work then upload a report with saved dummy data from CR Designer and I'll test it and escalate if required.

    Don

    Add comment
    10|10000 characters needed characters exceeded