Page 2 of 3
How to call report once SETUP file created
Posted: Wed Oct 07, 2009 5:30 am
by Edward
Hi Jay,
Please pass variables as follows:
Dim report As StiReport = StiReport3.GetReport()
report.Compile()
report("cmpName") = "Variable Value"
Thank you.
How to call report once SETUP file created
Posted: Wed Oct 07, 2009 5:54 am
by jayanthi
Hello,
Thanx for ur reply Mr Edward.
My report name is rptDailyClaim.mrt, in that i have cross tab, variables.
I use the below code
Dim report As StiReport = StiReport3.GetReport()
report.Compile()
report("cmpName") = "Variable Value"
I have a StiReport component in form and designed the report and saved it as a template rptDailyClaim.mrt.
But the above code generating a new report and didnt load the report rptDailyClaim and also the line report("cmpName") = "Variable Value" throws error like variable not exists
Thanx
Jay
How to call report once SETUP file created
Posted: Wed Oct 07, 2009 11:28 pm
by jayanthi
Hai,
Can anyone help me, please its urgent.
Thanx
Jay
How to call report once SETUP file created
Posted: Thu Oct 08, 2009 12:05 am
by Jan
Hello Jay,
jayanthi wrote:Hello,
Thanx for ur reply Mr Edward.
My report name is rptDailyClaim.mrt, in that i have cross tab, variables.
I use the below code
Dim report As StiReport = StiReport3.GetReport()
report.Compile()
report("cmpName") = "Variable Value"
I have a StiReport component in form and designed the report and saved it as a template rptDailyClaim.mrt.
But the above code generating a new report and didnt load the report rptDailyClaim and also the line report("cmpName") = "Variable Value" throws error like variable not exists
May be you skip Load method?
Thank you.
How to call report once SETUP file created
Posted: Thu Oct 08, 2009 1:21 am
by jayanthi
Hello Jan,
Actually in crystal report, from EXE i can directly run the report without paste it in the deployment path.
Is it possible to do the same with Stimulsoft, because it will be easy to deploy at client's place.
Thank u
Jay
How to call report once SETUP file created
Posted: Thu Oct 08, 2009 5:30 am
by Edward
Hi Jay,
If the report did not exist this means that you had to add this variable into Dictionary during design time or the report template was not loaded correctly.
Also there is an ability to make an exe file from the code of your application. For this you can use Compile() method of the StiReport class:
report.Compile("D:\MyReport.exe", Stimulsoft.Base.StiOutputType.WindowsApplication)
Thank you.
How to call report once SETUP file created
Posted: Thu Oct 08, 2009 6:09 am
by jayanthi
I have wrote the code as like
report.Compile("D:\MyReport.exe", Stimulsoft.Base.StiOutputType.StiOutputType.WindowsApplication)
It throws error like Can't open folder for writing.
Please tell whether it is possible or not to run the report from EXE without paste the report in deployment path.
Thank u
Jay
How to call report once SETUP file created
Posted: Thu Oct 08, 2009 6:12 am
by jayanthi
I have wrote the code as like
report.Compile("D:\MyReport.exe", Stimulsoft.Base.StiOutputType.WindowsApplication)
It throws error like Can't open folder for writing, Access to the path denied
Please tell whether it is possible or not to run the report from EXE without paste the report in deployment path.
Thank u
How to call report once SETUP file created
Posted: Fri Oct 09, 2009 12:13 am
by Jan
Hello Jay,
On your computer exist drive D?
Thank you.
How to call report once SETUP file created
Posted: Fri Oct 09, 2009 1:09 am
by jayanthi
Hai,
Yes I have.
Thank u
Jay