2 MvcViewer in 1 Page

Stimulsoft Reports.WEB discussion
Post Reply
junixquiaoit
Posts: 38
Joined: Thu Jun 23, 2016 2:03 am

2 MvcViewer in 1 Page

Post by junixquiaoit »

Hi,
I creating an app which user 2 MvcViewer but i'm having problem with it.
The report loads on the 1st MvcViewer always. Is there any work around for this?

like this..

<div> //report 1
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {})
</div>
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: 2 MvcViewer in 1 Page

Post by Alex K. »

Hello,

Please set the different component ID for each viewer

Code: Select all

<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>
Thank you.
junixquiaoit
Posts: 38
Joined: Thu Jun 23, 2016 2:03 am

Re: 2 MvcViewer in 1 Page

Post by junixquiaoit »

Aleksey wrote:Hello,

Please set the different component ID for each viewer

Code: Select all

<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>
Thank you.
Set component ID? I can't seem to find where to set its ID, can you help me where can i set this?

Thanks,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: 2 MvcViewer in 1 Page

Post by Alex K. »

Hello,

Please check the following code:
<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>

Thank you.
junixquiaoit
Posts: 38
Joined: Thu Jun 23, 2016 2:03 am

Re: 2 MvcViewer in 1 Page

Post by junixquiaoit »

Aleksey wrote:Hello,

Please check the following code:
<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>

Thank you.
Ok got it.. thanks, I didn't see that one. :)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: 2 MvcViewer in 1 Page

Post by Alex K. »

Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
Post Reply