Page 1 of 1

Online Viewer, can't save

Posted: Thu Jul 10, 2008 8:51 am
by ape
Hello,

i've created a report with variables ( and parameters ). on my sample asp.net site you can write a name in a textbox and the report will be produced

the report is correct, and if i want to print it to pdf works but if i want to save it as a pdf file or any other formats i get only empty pages

heres the code:

Code: Select all

 
            StiReport myReport = new StiReport();
            myReport.Load("E:\\dipl\\reports.net\\einsatzliste_ma.mrt");
            myReport.Compile();

 
            if (surname.Text != "") 
                myReport["emp_surname"] = surname.Text;

            if (!from_date.IsNull) 
                myReport["from_date"] = from_date.SelectedDate;

            if (!to_date.IsNull) 
                myReport["to_date"] = to_date.SelectedDate;

            myReport.Render();

            StiWebViewer1.Report = myReport;


greetings ape


Online Viewer, can't save

Posted: Thu Jul 10, 2008 1:16 pm
by Edward
Hello.

Please download the latest prerelease build this issue have been fixed.

Thank you.

Online Viewer, can't save

Posted: Fri Jul 11, 2008 2:48 am
by ape
No, i've downloaded the 2008 07.07 build and it didn't work either.

Saving works if i use a report with no variables, or set standard values ( if set it shows only the report with standard values, not with the dynamic set values).

it seems that the report can't save the variables because the object is destroyed after displaying the asp.net page

is there a possible solution for my problem?

Online Viewer, can't save

Posted: Fri Jul 11, 2008 3:54 am
by ape
I've send a sample project to support@stimulsoft.com