How can I use Enhance Preview?

Posted by: jeongchen0516 on 2 April 2020, 11:57 am EST

  • Posted 2 April 2020, 11:57 am EST

    Now, I'm using Spread 13 for Winforms.
    I saw Enhance Preview that looks like Printing Preview in Excel at Function in Spread 13.
    But when i writing Example Code, It execute same Preview that Enhance Preview false status.

    Same Code in Csharp, It works perfectly.
    but in VB.NET, they were not working. [b][/b]
    FpSpread1.ActiveSheet.Cells(1, 1).Value = "1,1"
    FpSpread1.ActiveSheet.Cells(10, 10).Value = "10,10"

    Dim pi As New PrintInfo
    FpSpread1.ActiveSheet.PrintInfo = pi
    pi.ShowPrintDialog = True
    pi.EnhancePreview = pi.Preview = True
    'FpSpread1.ActiveSheet.PrintInfo = pi

  • Marked as Answer

    Replied 2 April 2020, 5:54 pm EST


    Please try this:
    Dim pi = New PrintInfo()
    FpSpread1.ActiveSheet.PrintInfo = pi
    pi.Preview = True
    pi.EnhancePreview = True


  • Replied 2 April 2020, 7:22 pm EST

    Thank you, The problem has been solved.
Need extra support?

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

Learn More

Forum Channels