Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1385
XamSpreadsheet dpi and WinForms
posted

We have a case where a new WPF dialog is being launched from a WinForms application (all the dialogs are slowly being refactored to WPF).  The WPF Window has a XamSpreadsheet which contains a generated report which can be saved to an Excel doc.  We are using v17.2 (but we have always seen this behavior with that control).

Something we are seeing is that when the report is set and displayed within the WinForm, and Windows has a high DPI setting (as many new machines come with by default), the row heights are squished.  Other elements on the window don't seem to have any issues.

I have attached a screenshot and a sample app.  Is there something I can do to improve the behavior?

SpreadsheetSample.zip

Parents
  • 34830
    Offline posted

    Hello Walter,

    I have been investigating into this behavior you are seeing, and I have reproduced it. This appears to be specific to launching the XamSpreadsheet from a Windows Forms application, and in order to work around it, I would recommend that you use the Windows Forms spreadsheet control, the UltraSpreadsheet. You can read about this control here: https://ko.infragistics.com/help/winforms/spreadsheet.

    If using the UltraSpreadsheet is not an option, I would recommend that you set the DefaultColumnWidth and DefaultRowWidth properties on the Worksheets in the Workbook that you assign to the XamSpreadsheet such that they appear closer to your expected height and width.

    This is unexpected behavior, and as such, I have asked our engineering staff to examine it further. To ensure this receives attention, I have logged this behavior in our internal tracking system with a development ID of 249294 and have created you a private support case so that you can be notified of a resolution to this issue when it becomes available. This support case has an ID of CAS-190750-H9R8M0 and you can access it at https://ko.infragistics.com/my-account/support-activity.

    I will be sending the initial update to that support case shortly. Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Software Developer

Reply Children