C1TrueDBGrid PrintInfo Issues When Windows' TextSize is set to 125%

Posted by: SHanau on 3 April 2022, 6:54 am EST

    • Post Options:
    • Link

    Posted 3 April 2022, 6:54 am EST - Updated 3 October 2022, 10:19 pm EST

    Hi There,

    I’ having some troubles with C1TrueDBGrid’s PrintInfo when Windows 10’s text size is set to 125%. Even though the Grid’s rows and cells are rendered correctly the cell texts aren’t resized and re-positioned accordingly. Please see both screenshots attached.

    Here’s what I do:

    
    
    // grid
    
    C1TrueDBGrid _myGrid = (C1TrueDBGrid)sender;
    
    // resize columns
    
    for (int i = 0; i <= _myGrid.Columns.Count - 1; i++)
                    _myGrid.Splits[0].DisplayColumns[i].AutoSize();
    	
    // extend right column
    
    _myGrid.ExtendRightColumn = false;
    
    // preview
    
     _myGrid.PreviewInfo.ZoomFactor = 100;
     _myGrid.PreviewInfo.Size = System.Windows.Forms.SystemInformation.WorkingArea.Size;
     _myGrid.PreviewInfo.Caption = sPageHeader;
    
    // printinfo
    
    PrintInfo _myInfo = _myGrid.PrintInfo;
    
    // measurements
    
    _myInfo.MeasurementDevice = PrintInfo.MeasurementDeviceEnum.Screen;
    
    // pagesettings
    
    _myInfo.PageSettings.Margins.Left = 25;
    _myInfo.PageSettings.Margins.Right = 25;
    _myInfo.PageSettings.Margins.Top = 25;
    _myInfo.PageSettings.Margins.Bottom = 25;
    _myInfo.PageSettings.Landscape = bLandscape;
    
    // pageheader
    
    _myInfo.PageHeader = sPageHeader + "\t\t Seite \\p von \\P";
    _myInfo.PageHeaderStyle.Font = new Font(_myInfo.PageHeaderStyle.Font, FontStyle.Bold | FontStyle.Italic);
    
    // pagefooter
    
    _myInfo.PageFooter = sPageFooter;
    _myInfo.PageFooterStyle.Font = new Font(_myInfo.PageFooterStyle.Font, FontStyle.Bold | FontStyle.Italic);
    _myInfo.PageFooterHeight = 100;
    
    // kopf auf jeder seite
    
    _myInfo.RepeatGridHeader = true;
    _myInfo.RepeatColumnHeaders = true;
    
     // ausdrucken
    
    _myInfo.PageSettings.PrinterSettings.Copies = 1;
    _myInfo.PageSettings.PrinterSettings.Collate = true;
    _myInfo.UseGridColors = true;
    _myInfo.PrintPreview();
    
    
    

    Please advise. Thanks in advance.

  • Posted 4 April 2022, 7:35 am EST

    Hi Stephan,

    We have escalated the issue to the development team to get their insights on it. We will let you know as soon as we have an update.

    Kind Regards,

    Kartik

    [Internal Tracking ID: 27207]

  • Posted 14 April 2022, 5:00 pm EST

    Hi Kartik,

    Any news on this subject?

    Kind Regards,

    Stephan

  • Posted 18 April 2022, 11:15 pm EST

    Hi Stephan,

    We are getting in touch with the development team to get information on this case. We will let you know as soon as we have an update.

    Best Regards,

    Kartik

  • Posted 19 May 2022, 5:12 pm EST

    Hi Kartik,

    A month has gone by and still no news?

    Kind regards,

    Stephan

  • Posted 19 May 2022, 11:04 pm EST

    Hi Stephan,

    We apologize for the delay in response. The ETA for the issue fix is the 2022v2 release. Currently, we do not have an exact date yet, but it is supposed to be out around August this year.

    Kind Regards,

    Kartik

  • Posted 21 May 2022, 4:18 pm EST

    Hi Kartik,

    No worries. I’m looking forward to August now.

    Best Regards,

    Stephan

  • Posted 9 August 2022, 7:37 am EST

    Hi Stephan,

    We are happy to let you know that this issue has been fixed in the latest 2022v2 release (build 566). You can update to the latest version of C1 Controls from the ComponentOne Control Panel or directly install the latest C1 packages from NuGet.

    https://www.grapecity.com/componentone/download

    https://www.nuget.org/packages/C1.Win.C1TrueDBGrid

    Best Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels