Skip to Content
Former Member
Apr 28, 2012 at 09:33 PM

Setting ReportDocument.Filename to variable is a no go


I am trying to set the filename dynamically for my CrystalReportViewer webpart and when I do I get the following error

Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack. "

but if I hardcode the path it works fine. I've checked the variable and the string is the same. To me a string is a string.

This works:

reportDoc.FileName = "\\\\\\Shared Documents\\TEST.rpt";

This does not

string url = "\\\\\\Shared Documents\\TEST.rpt";
reportDoc.FileName = url