How to open the RazorPDF report in a separate tab

0

How do I export a PDF report with RazorPDF on a separate tab ? Home The report opens on the same system tab , ie it is only a tab and if I want to access the system I have to click the Browser Back button . I've followed this post here: Exporting an HTML / C # (Razor) for PDF?

    
asked by anonymous 25.10.2016 / 13:12

1 answer

1

The problem in question has no relation to geração-de-pdf , asp.net-mvc or RazorPDF .

What you need is to open a link on another tab, so you can set target of your tag <a /> to _blank .

HTML

<a href='@Url.Action("action", "controle", params)' target='_blank' >Relatorio</a>

Razor Engine

@Html.ActionLink("Relatorio", "action", "controle", params, new { @target = "_blank" })
    
25.10.2016 / 13:45