Printing issue

Posted by: j_asimbaya on 27 September 2019, 9:33 am EST

  • Posted 27 September 2019, 9:33 am EST


    I have an application in C # VS 2019 and I use the Spread.NET for windows Forms v12.45.20193.0. To print a spread sheet I use the following code:

    fpSpread.ActiveSheet.ZoomFactor = (float)nupZoom.Value; //1
    fpSpread.ActiveSheet.PrintInfo.ShowColumnHeaders = true;
    fpSpread.ActiveSheet.PrintInfo.ShowRowHeaders = false;
    fpSpread.ActiveSheet.PrintInfo.ShowGrid = true;
    fpSpread.ActiveSheet.PrintInfo.ShowBorder = true;
    fpSpread.ActiveSheet.PrintInfo.ShowShadows = true;
    fpSpread.ActiveSheet.PrintInfo.ShowColor = true;
    fpSpread.ActiveSheet.PrintInfo.UseMax = false;
    fpSpread.ActiveSheet.PrintInfo.BestFitCols = false;
    fpSpread.ActiveSheet.PrintInfo.ShowPrintDialog = true;

    fpSpread.ActiveSheet.PrintInfo.PrintType = FarPoint.Win.Spread.PrintType.PageRange;
    fpSpread.ActiveSheet.PrintInfo.PageStart =1;
    fpSpread.ActiveSheet.PrintInfo.PageEnd = 1;

    fpSpread.Sheets[0].PrintInfo.Orientation = FarPoint.Win.Spread.PrintOrientation.Portrait;
    fpSpread.ActiveSheet.PrintInfo.Preview = true;
    fpSpread.ActiveSheet.PrintInfo.UseSmartPrint = true;

    The application runs in Windows 10.

    But when you click on the "OK" button of the windows print manager, it does not print anything.

    If I run the application with source code with the IDE of VS 2019 ... if it prints.

    Does not include the printer, this happens with anyone. What is happening?
  • Marked as Answer

    Replied 29 September 2019, 4:26 pm EST


    I am not able to replicate the issue with the same code and with the same build. On clicking on the "OK" button of the windows print manager, it prints the spread.
    Could please you check with other printers "Microsoft XPS"/ "MicroSofet Print to PDF"

Need extra support?

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

Learn More

Forum Channels