Load a rpt in print preview

Posted by: bruce on 8 October 2018, 5:40 pm EST

    • Post Options:
    • Link

    Posted 8 October 2018, 5:40 pm EST

    I’m coming from v2 to v12.

    I pulled together code to display my report in a viewer connected to a form. How can I display the report in print preview (sans viewer?)

    Thanks,

    Bruce

  • Posted 8 October 2018, 5:42 pm EST

    My current code:

    Private Sub btnPrintPreview_Click(sender As Object, e As EventArgs) Handles btnPrintPreview.Click

    Dim rpt As New GrapeCity.ActiveReports.SectionReport

    Dim xtr As New System.Xml.XmlTextReader(“C:\Users\Bruce\Dropbox\Documents\LMC Software Solutions\Clients\RV Park\Source 2\rptTransactions.rpx”)

    rpt.LoadLayout(xtr)

    rptViewer.Document = rpt.Document

    rpt.Run()

    End Sub

  • Posted 9 October 2018, 4:21 am EST

    Hello,

    You need WinViewer to preview the report. However, could you please provide your use case so that I can help you more efficiently.

    Thanks,

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels