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

Setting ReportDocument.Filename to variable is a no go

119 Views

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 = "\\\\workspaces10dev.CT.blackwaterprotection.com\\Shared Documents\\TEST.rpt";

This does not

string url = "\\\\workspaces10dev.CT.blackwaterprotection.com\\Shared Documents\\TEST.rpt";
reportDoc.FileName = url