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,

Issue with a compilation is confirmed. We will let you know about our progress.

Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How to call report once SETUP file created

Post by Jan »

Hello,

We have added ability to save report as standalone report to report designer (Save As menu item). Please check prerelease build from 19 October.

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,

I have installed 10.19.09 files.

Plz can you explain me how to save the designed report.
I have save the report as Report1 in a folder. Now can i create an object for that report as
Dim rpt as new Report1.

Thanx
Jai
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to call report once SETUP file created

Post by Edward »

Hi Jay,

Yes, now you can save a report as exe file directly from designer.

For this please go to the Code Tab and add that default method which will be called when exe file is being launched:

VB.Net:

Code: Select all

Private Shared Sub Main(ByVal args As String())
    New Report().Show(True)
End Sub
C#:

Code: Select all

static void Main(string[] args)
{
new Report().Show(true);
}
'Report' is the default name of the report class. You must replace it with the name of the report class you have in case if it was changed.

Adding of that method is also a requirement for saving as 'exe' from your application using:

Compile() method:

Code: Select all

report.Compile("MyReport.exe", Stimulsoft.Base.StiOutputType.WindowsApplication)
When this code is in the 'Code' tab, it is possible to save report as executable file. Please go to File-'Save report as' menu item and choose 'standalone report (.exe)' option in 'save as type' combobox.

Please note that for launching of that standalone report Stimulsoft*.dll files must be placed in GAC or be in the same directory with that executable file.
Now can i create an object for that report as
Dim rpt as new Report1.
Could you give more details of the task you want to do with this code, please?

Thank you.
Post Reply