Visual Basic Syntax for StiMvcDesigner

Stimulsoft Reports.WEB discussion
Post Reply
jansenlam
Posts: 5
Joined: Thu Oct 18, 2018 5:40 am

Visual Basic Syntax for StiMvcDesigner

Post 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
jansenlam
Posts: 5
Joined: Thu Oct 18, 2018 5:40 am

Re: Visual Basic Syntax for StiMvcDesigner

Post 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"
                                            }
            })
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Visual Basic Syntax for StiMvcDesigner

Post by Andrew »

Hello,

Okay. Thank you for letting us know about this.
Post Reply