Snap size

edited 4:27AM in FastReport .NET
Hello,
how can I change the "snap size" of the designer from code?
I would like to change it from 0,25 to 0,2.

Thanks

Comments

  • edited 4:27AM
    ldm75 wrote: »
    Hello,
    how can I change the "snap size" of the designer from code?
    I would like to change it from 0,25 to 0,2.

    Thanks

    You have to access file FastReport.config and modify the file.
    The file as an xml file. You can find the code to edit xml.

    example content of empty FastReport.config =

    <?xml version="1.0" encoding="utf-8"?>
    <Config>
    <Forms>
    <DesignerForm Maximized="1"/>
    <PreviewForm Maximized="1"/>
    </Forms>
    <UIStyle Style="Office2007Black"/>
    <Language/>
    <Plugins/>
    <Designer>
    <Report/>
    <Code/>
    </Designer>
    </Config>

    example content of modify FastReport.config =

    <?xml version="1.0" encoding="utf-8"?>
    <Config>
    <Forms>
    <DesignerForm Maximized="1"/>
    <PreviewForm Maximized="1"/>
    </Forms>
    <UIStyle Style="Office2007Black"/>
    <Language/>
    <Plugins/>
    <Designer>
    <Report Units="Centimeters" SnapSizeMillimeters="1" SnapSizeCentimeters="0.2" SnapSizeInches="0.1" SnapSizeHundrethsOfInch="10" ShowGrid="1" SnapToGrid="1" DottedGrid="1" MarkerStyle="Corners" BandStructureSplitter="170" Scale="1" AutoGuides="0" ClassicView="1" EditAfterInsert="0"/>
    <Code/>
    </Designer>
    </Config>


    ==============
    "many roads to roma"

Leave a Comment