Help with css and toolbar viewer

Stimulsoft Reports.WEB discussion
Post Reply
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Help with css and toolbar viewer

Post by romulocpd »

Hello.

If I use the web viewer in a blank layout the report is perfect. But I'm trying show the report in my layout. The report is OK but the margins of the viewer toolbar are not correct. See the attach.
Example
Example
css webviewer.png (11.74 KiB) Viewed 3589 times
Any help? Maybe any style in a div to show the report.

I've tested:

Code: Select all

<div style="display: block;">
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {
                Theme = StiTheme.Office2010,
                ActionGetReportSnapshot = "DadosExibicaoRelatorio",
                ActionViewerEvent = "ViewerEvent",
                ActionPrintReport = "PrintReport",
                ActionExportReport = "ExportReport",
                ActionInteraction = "Interaction"            
})
</div>
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Help with css and toolbar viewer

Post by Vladimir »

Hello,

Please send us your project (with CSS styles) for analysis, we will try to solve this problem.

Thank you.
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Help with css and toolbar viewer

Post by romulocpd »

I think it's a little hard, my project is very big and depends of database. I'll try to make a simple page with my CSS files to reproduce the problem.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Help with css and toolbar viewer

Post by HighAley »

Hello.

We are waiting for your sample page.

Thank you.
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Help with css and toolbar viewer

Post by romulocpd »

Hello.

In attach the procject example

Problem in example:
Problem in a send example
Problem in a send example
Report 1.png (77.82 KiB) Viewed 3575 times
Other problem in my project. The menu is showed behind the report! See:
Other problem
Other problem
Report 2.png (29.55 KiB) Viewed 3575 times
Thank you so much!
Attachments
MvcTeste.rar
Source files to reproduce the problem
(2.8 MiB) Downloaded 437 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Help with css and toolbar viewer

Post by Vladimir »

Hello,

We have tested your project and find a solution. Please add the following code to the _Layout.cshtml file in HEAD section, after the @Html.Stimulsoft().RenderMvcViewerScripts() code line:

Code: Select all

...
    @Html.Stimulsoft().RenderMvcViewerScripts()
    <style>
        #MvcViewer td {
            vertical-align: middle;
        }
    </style>
Regarding the second question. Please try to set a large z-index value in CSS styles for your menu.

Thank you.
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Re: Help with css and toolbar viewer

Post by romulocpd »

Now it's working! Thank you!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Help with css and toolbar viewer

Post by Alex K. »

Hello,

We are always glad to help you!
Post Reply