PDF Graphics need higher low resolution

Posted by: niels on 26 January 2024, 10:31 pm EST

    • Post Options:
    • Link

    Posted 26 January 2024, 10:31 pm EST

    See attached pdfs

    This causes low res: PrintToPdf = true

    This cause high res: PrintToPdf = false

    But PrintToPdf = false pops up the save to file dialog each time.

    How can I get HIGH res with PrintToPdf = true ???

                       var printSet = new PrintInfo
                        {
                            NoPrinterSetting = nop,
                            Centering = Centering.Horizontal,
                            EnhancePreview = true,
                            Margin = new PrintMargin(50,50,50,50,5,5),
                            Header = $"Template {ReviewSheet.FileName}",
                            Footer = $"Created {DateTime.Now:yyyy-MM-dd HH:mm:ss}",
                            PrintToPdf = true,
                            Printer = "Microsoft Print to PDF",
                            PdfWriteMode = PdfWriteMode.New,
                            PdfQualityMode = QualityMode.High,
                            PrintShapes = true,
                            BestFitWithSpan = false,
                            BestFitCols = false,
                            BestFitRows = false,
                            ShowBorder = false,
                            ShowColor = true,
                            ShowGrid = false,
                            OutlineBorderClipped = true,
                            ShowColumnFooter = PrintHeader.Hide,
                            ShowRowHeader = PrintHeader.Hide,
                            ShowShadows = false,
                            ShowColumnHeaders = false,
                            ShowRowHeaders = false,
                            PdfFileName = Path.ChangeExtension(Path.Combine(folder, $"{Path.GetFileNameWithoutExtension(ReviewSheet.FileName)}-{sheet.SheetName}-{DateTime.Now:yyyyMMdd-HHmmss}"), ".pdf")
                        };
                        sheet.PrintInfo = printSet;
  • Posted 26 January 2024, 10:33 pm EST

  • Posted 28 January 2024, 9:51 pm EST

    Hi Niels,

    This is a known issue. [Internal Tracking ID: SPNET-32455] The developers have provided Spread.NET v18 as an ETA for the fix of this issue.

    We request you wait for the release to be publicly available in order to get the fix of this issue.

    Thanks & Regards,

    Aastha

  • Posted 3 February 2024, 2:42 am EST

    Hi Aastha.

    I would appreciate if EMF graphics format is supported in

    FpSpread.PrintSheet

    SheetView.SaveImage

    SheetView.AddShape

    I expect that would solve the resolution graphics issues I have

    Best regards,

    Niels

  • Posted 5 February 2024, 11:03 am EST

    Hi Niels,

    We discussed your suggestion with the developers. According to them, exporting spread to EMF does not seem feasible currently as will require too many efforts. Also, this functionality is not even supported by Excel.

    Since the fix of this issue has been included in v18, the developers have recommended upgrade to v18 build, when it will be available.

    Thanks for understanding.

    Kind Regards,

    Aastha

  • Posted 5 February 2024, 11:21 am EST

    Hi Aastha, Thank you for the answer. I wrongly thought EMF was supported by Excel. Sorry for that.

Need extra support?

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

Learn More

Forum Channels