locked
Set height and position of a field or the height of a section RRS feed

  • Question

  • Hello,

    how can I set height and position of a field or the height of a section in Crystal Reports for Visual Studio 2010? I knew, that in Crystal Reports Release 2008 there is a option of the context menu of a field, that is named size and position (in German: "Grösse und Position").

    Or can I resize a section at runtime?

    Thanks

    Peter

    • Moved by Robert Breitenhofer Thursday, April 14, 2011 8:33 AM English instead German (From:Windows Workflow Foundation (WF))
    Tuesday, March 8, 2011 3:29 PM

All replies

  • Hi Peter.sx

     

    objRpt.ReportDefinition.Sections(<SECTION_NAME>).Height = 1024

    objRpt.ReportDefinition.ReportObjects(<OBJECT_NAME>).Height = 100

    objRpt.ReportDefinition.ReportObjects(<OBJECT_NAME>).Width = 100

    objRpt.ReportDefinition.ReportObjects(<OBJECT_NAME>).Top = 100

    objRpt.ReportDefinition.ReportObjects(<OBJECT_NAME>).Left = 100

     

    This Way You Can Set. objRpt is the Object of CR.


    Sandeep J. Sharma
    • Proposed as answer by SAPDon Friday, July 22, 2011 5:07 PM
    Friday, July 22, 2011 3:57 AM