Crystal Reports Error: The document has not been opened

Last Reply one year ago By dharmendr

Posted one year 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 ?

Posted one year 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.