Snap size
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
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
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"