how to set parameter for rdl by coding

86 views
Skip to first unread message

White Sorrow

unread,
Oct 30, 2018, 4:47:05 AM10/30/18
to myfyireporting
Hi I want to set the parameter list to rdl file by coding in c#

example

var designer = new fyiReporting.RdlDesign.RdlDesigner("myFyiChannel", false);

designer.parameter = parameter1=1&parameter2=2;

something like this 

I need to rewrite the parameter everytime I open the rdl for change the header value like report name / date / author or is there any solution else to do this

Thank you

Kernel Klink

unread,
Oct 31, 2018, 8:15:30 AM10/31/18
to myfyireporting
ProcessReport pr = new ProcessReport(rdlp.Report, ms);
pr
.Run(this.ReportParams, outputType);



Where this.ReportParams is an IDictionary.

The Kernel

White Sorrow

unread,
Oct 31, 2018, 1:07:28 PM10/31/18
to myfyireporting
where did I can find the ProcessReport ? I import the reference only designer and didn't found this class

Thank you

เมื่อ วันพุธที่ 31 ตุลาคม ค.ศ. 2018 19 นาฬิกา 15 นาที 30 วินาที UTC+7, Kernel Klink เขียนว่า:

Kernel Klink

unread,
Oct 31, 2018, 1:36:10 PM10/31/18
to myfyireporting
using fyiReporting.RDL;


The Kernel

White Sorrow

unread,
Oct 31, 2018, 11:07:57 PM10/31/18
to myfyireporting
Hi Kernel , I had try add rdlengine as ref and get the ProcessReport ,but I didn't know how to use it where can I get report and IStreamGen? 

I use the designer to create the report by Dialogdatabase then I get only designer instance

Thank you

เมื่อ วันพฤหัสบดีที่ 1 พฤศจิกายน ค.ศ. 2018 0 นาฬิกา 36 นาที 10 วินาที UTC+7, Kernel Klink เขียนว่า:

Kernel Klink

unread,
Nov 2, 2018, 8:38:48 AM11/2/18
to myfyireporting

From the MemoryStreamGen, you can GetText() to render as HTML (assuming you passed in the HTML report type).
You could also turn it into a byte[] if you were pulling a PDF (... msg.GetStream()).ToArray() ...)

Hope this helps
The Kernel

White Sorrow

unread,
Nov 2, 2018, 8:28:23 PM11/2/18
to myfyireporting
Thank you I will try it

เมื่อ วันศุกร์ที่ 2 พฤศจิกายน ค.ศ. 2018 19 นาฬิกา 38 นาที 48 วินาที UTC+7, Kernel Klink เขียนว่า:
Reply all
Reply to author
Forward
0 new messages