Crystal Reports Error: The document has not been opened

Last Reply 2 months ago By dharmendr

Posted 2 months ago

Sir,

 I am working on crystal reports and refered an article below: 

https://www.aspsnippets.com/Articles/Crystal-Report-ASPNet-Example-using-DataSet-or-DataTable-in-C-VBNet-and-Visual-Studio-2010.aspx 

on ReportDocument crystalReport = new ReportDocument(); line showing me an error as "The document has not been opened."

Why ?

You are viewing reply posted by: dharmendr 2 months ago.
Posted 2 months ago

First uninstall the previous Crystal report.

Download Crystal report for VS 2012.

Download Crystal Reports for Visual Studio 2012

Then install it with Run as Administrator because i creates some entries in your registry of windows.

Remember to close VS during installation.

After successful installation you need to change the dlls version in your code.