How to call report once SETUP file created

Stimulsoft Reports.NET discussion
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to call report once SETUP file created

Post by Edward »

Hi Jay,

Please pass variables as follows:

Dim report As StiReport = StiReport3.GetReport()
report.Compile()
report("cmpName") = "Variable Value"

Thank you.
jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to call report once SETUP file created

Post 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

jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to call report once SETUP file created

Post by jayanthi »

Hai,

Can anyone help me, please its urgent.

Thanx
Jay
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How to call report once SETUP file created

Post 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.
jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to call report once SETUP file created

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to call report once SETUP file created

Post 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.
jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to call report once SETUP file created

Post 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
jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to call report once SETUP file created

Post 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
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How to call report once SETUP file created

Post by Jan »

Hello Jay,

On your computer exist drive D?

Thank you.
jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to call report once SETUP file created

Post by jayanthi »

Hai,

Yes I have.

Thank u
Jay
Post Reply