Print Preview C1.Win.C1Preview.C1PreviewPane

Posted by: gigaziv on 8 September 2017, 3:17 pm EST

  • Posted 8 September 2017, 3:17 pm EST

    Hi!
    Can I use C1.Win.C1Preview.C1PreviewPane alternatively preview.

       Private Sub FpSpread_PrintPreviewShowing(sender As System.Object, e As FarPoint.Win.Spread.PrintPreviewShowingEventArgs)
    '---
    e.Cancel = True
    '---
    Using iPreview As hPreview = New Preview
    '---
    Call iPreview.iDocumentPrint.Document = e.PreviewDialog.Document
    Call iPreview.ShowDialog()
    End Using
    End Sub


    iDocumentPrint - C1.Win.C1Preview.C1PreviewPane
    Document - Public Property Document As Object
    C1.Win.C1Preview.C1PreviewPane
    Gets or sets the document shown by the preview.

    This will be correct?
  • Replied 8 September 2017, 3:17 pm EST

    Friend Sub FpSpread_PrintPreviewShowing(sender As System.Object, e As FarPoint.Win.Spread.PrintPreviewShowingEventArgs)

    e.Cancel = True

    Using iPreView As hPreView = New hPreView
    '---
    Call iPreView.iDocumentPrint.Document = e.PreviewDialog.Document
    Call iPreView.ShowDialog()
    End Using

    End Sub
  • Marked as Answer

    Replied 8 September 2017, 3:17 pm EST

    Hello,

    Please note that PrintPreview control cannot be used to preview Spread. The PrintPreview control is designed to load and preview only report documents. And since the spread and report have entirely different architecture, the same can't be previewed in the PrintPreview control.

    Hope it clarifies.

    Regards,
    Mohita

Need extra support?

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

Learn More

Forum Channels