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

    FpSpread1.PrintSheet(FpSpread1.ActiveSheet)
  • Marked as Answer

    Replied 2 April 2020, 5:54 pm EST

    Hi,

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

    FpSpread1.PrintSheet(FpSpread1.ActiveSheet)


    Regards,
    Jitender
  • 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