send code from windows form to report

Stimulsoft Reports.NET discussion
Post Reply
cheyenne12
Posts: 3
Joined: Sun Sep 28, 2008 2:40 pm
Location: Spain

send code from windows form to report

Post by cheyenne12 »

as you would to send a fact to report to print, to say the computer 350, as the filter?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

send code from windows form to report

Post by Edward »

Hello.

You can send mdc file of rendered report between computers. This mdc file could be used for printing from other computers without necessity of building that report on other computers.

Here is the code for saving of the rendered report:

Code: Select all

report.Render(false);
report.SaveDocument("myRenderedrepot.mdc");
And Here is the code for printing of that report on any other computer:

Code: Select all

report.LoadDocument("myRenderedrepot.mdc");
report.Print();
Thank you.
cheyenne12
Posts: 3
Joined: Sun Sep 28, 2008 2:40 pm
Location: Spain

send code from windows form to report

Post by cheyenne12 »





sorry, I mean how to filter data from a windows form?

I also would be useful, for example, put a code in a textbox windows of a form and show the details in the report
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

send code from windows form to report

Post by Edward »

Hello.

There is a flash video for your task:

http://www.stimulsoft.com/livedemos/Rep ... ilter.html

Define a 'MyVariable' variable in the Dictionary and set it inside of the form and use that variable inside of the filter:

Code: Select all

Customers.Country == MyVariable
Thank you.
Post Reply