Page 1 of 1

send code from windows form to report

Posted: Sun Sep 28, 2008 2:46 pm
by cheyenne12
as you would to send a fact to report to print, to say the computer 350, as the filter?

send code from windows form to report

Posted: Mon Sep 29, 2008 4:49 am
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.

send code from windows form to report

Posted: Mon Sep 29, 2008 2:10 pm
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

send code from windows form to report

Posted: Mon Sep 29, 2008 4:17 pm
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.