Page 3 of 3

How to call report once SETUP file created

Posted: Fri Oct 09, 2009 5:49 am
by Edward
Hi Jay,

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

Thank you.

How to call report once SETUP file created

Posted: Fri Oct 16, 2009 1:56 am
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.

How to call report once SETUP file created

Posted: Wed Oct 21, 2009 12:13 am
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

How to call report once SETUP file created

Posted: Wed Oct 21, 2009 7:02 am
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.