Printing without extra margins and URI

Stimulsoft Reports.NET discussion
Post Reply
beginner
Posts: 36
Joined: Thu Jun 18, 2015 5:01 am

Printing without extra margins and URI

Post by beginner »

Hi,

I'm using `StiMvcViewer` to show reports in my MVC 5 application; When user prints the page, with or without preview, URI will be printed on page too, that takes a lot of margin and is really unusable.


I've attached an example page printed to OneNote, but printing on paper is exactly the same.


Here is my viewer configuration, if that's important.

Code: Select all

    @Html.Stimulsoft().StiMvcViewer(repName, new StiMvcViewerOptions
{
    ActionInteraction = "Interaction",
    ActionPrintReport = "PrintReport",
    ActionViewerEvent = "ViewerEvent",
    ActionExportReport = "ExportReport",
    ActionGetReportSnapshot = "Load",
    Controller = "../Report",

    DefaultExportSettings = new
    {
        UseOnePageHeaderAndFooter = true,
        ExportObjectFormatting = false,
        ExportDataOnly = true,
        ColumnsRightToLeft = true
    },
    
    Width = Unit.Point(700),
    ScrollbarsMode = true,

    ServerTimeout = TimeSpan.FromMinutes(3),
    Localization = "~/Content/Reporting/fa.xml",
    Theme = StiTheme.Windows7,
    ShowTooltips = false,
    Height = Unit.Point(1000),
    MenuShowMode = StiShowMenuMode.Hover,
    PageAlignment = StiContentAlignment.Center,
    ShowExportDialog = false,
    ToolbarAlignment = StiContentAlignment.Center,
    RightToLeft = false,

    ShowExportToCsv = true
})
Attachments
print.png
print.png (29.89 KiB) Viewed 1386 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Printing without extra margins and URI

Post by HighAley »

Hello.

Unfortunately, the browsers don't give access to the print settings.
So you should disable the Headers and Footers in browser's print settings.
Also, please, set the right page size. It should be the same as you set in report template.
Try to change the Margins in the same settings.

Thank you.
Post Reply