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
515
FitWidthToPages
posted

Hi,

We're trying to build a more robust PrintPreview dialog, using the UltraPrintPreview control. As part of this, we'd like to give the user the ability to choose how many pages the grid will print out on. But we've run into a problem with UltraGridPrintDocument.FitWidthToPages.

There seems to be no way to set the property's value. We'd like to set the this value at the creation of the instance, not during the InitializePrintPreview event (we're not using the grid's PrintPreview() method - so InitializePrintPreview and e.DefaultLogicalPageLayoutInfo.FitWidthToPages are not available), but even though the property is documented as writeable, changing it never has any effect. Is this intended?

Thanks for any help

Parents
  • 71886
    Suggested Answer
    Offline posted

    Hello SteveAltman,

     

    I have preapared a sample for you. I have set in design-time, the FitWidthToPages property to 5 and made a text box and a button to set this property in run-time also.

     

    I have tested this with Net Advantage 2011 vol1 and wasnt able to reproduce your scenario. My advise would be to download the latest service release for your current version and verify the behavior of the application against it.

     

    Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.

     

    Feel free to write me if you need further assistance.

    FitWidthToPages.zip
Reply Children
No Data