Snap size

edited 5:45AM 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 5:45AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.