Posted 9 March 2023, 6:00 am EST
I inherited a project using C1ReportViewer. I’m refactoring the project to use Winforms and reusing the xml reports parameters (I’ve migrated to flxr using the Xml2Flxr solution, though they appear to be very similar).
I have a C1FlexViewer control on my form and in the code behind I’m doing:
var myrpt = new C1FlexReport();
myrpt.Load("Reports.flxr", "101");
cfv.DocumentSource = myrpt;
At this point I get the following error:
System.ArgumentException
HResult=0x80070057
Message=Only 'http' and 'https' schemes are allowed.
Parameter name: requestUri
Source=System.Net.Http
StackTrace:
at System.Net.Http.HttpRequestMessage.InitializeValues(HttpMethod method, Uri requestUri)