Page 1 of 1

Visual Basic Syntax for StiMvcDesigner

Posted: Thu Oct 18, 2018 5:50 am
by jansenlam
Hi everyone,

I just upgraded my MVC project of Stimulsoft Report from 2014.1.1900 to 2018.3.2. But found that some of the code does not work. e.g.

Code: Select all

@Html.Stimulsoft().RenderMvcDesignerScripts()

@Html.Stimulsoft().StiMvcDesigner("MvcDesigner1", New StiMvcDesignerOptions With {
        .ActionGetReportTemplate = "GetReportTemplate",
        .ActionOpenReportTemplate = "OpenReportTemplate",
        .ActionSaveReportTemplate = "SaveReportTemplate",
        .ActionDesignerEvent = "DesignerEvent",
        .ShowFileMenuOpen = False,
        .ShowFileMenuNew = False,
        .ShowFileMenuClose = False,
        .ShowPreviewButton = False
    })
The code is loading the report designer by given a report template.

From the Programming Manual, the new syntax is

Code: Select all

@Html.Stimulsoft().StiMvcDesigner("MvcDesigner1",
new StiMvcDesignerOptions() {
	Actions =
		{
			GetReport = "GetReport",
			DesignerEvent = "DesignerEvent"
		}
	})
It is not working as my project is a VB project.

Anyone can help me for that?

Regards,
Jansen Lam

Re: Visual Basic Syntax for StiMvcDesigner

Posted: Thu Oct 18, 2018 9:09 am
by jansenlam
I figured it out!

Code: Select all

@Html.Stimulsoft().StiMvcDesigner("MvcDesigner1", New StiMvcDesignerOptions With {
                                    .Theme = Stimulsoft.Report.Web.StiDesignerTheme.Office2013WhiteTeal,
                                    .Actions = New StiMvcDesignerOptions.ActionOptions With {
                                            .GetReport = "GetReportTemplate",
                                            .DesignerEvent = "DesignerEvent",
                                            .SaveReport = "SaveReportTemplate"
                                            }
            })

Re: Visual Basic Syntax for StiMvcDesigner

Posted: Thu Oct 18, 2018 2:32 pm
by Andrew
Hello,

Okay. Thank you for letting us know about this.