You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Hello Jing,
I was trying to make rfg file to use with make some templates to use in my application but i change color value and the control invalidated, so i save the file and tried to load it again and still showed invalidated control..
What happen when i changed the property of the row and changed the height of the row it crashed.
right clicked on the row -> properties - Panel Height..
I see it change the panel header text and if there is no color there it crashes..
This what made the control crash
<row row="0" height="24" last-height="31" text-color="#00000000" />
The problem is that there is two many numbers in the hex color. when change to this it works fine.
<row row="0" height="24" last-height="31" text-color="#000000" />
Error
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: brush
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at cs.c7(String A_0, Brush A_1, Rectangle A_2)
at cz.ah(CellDrawingContext A_0)
at ej.cp(CellDrawingContext A_0)
at dm.y(CellDrawingContext A_0)
at el.dp(CellDrawingContext A_0)
at ep.dp(CellDrawingContext A_0)
at unvell.ReoGrid.ReoGridControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at unvell.ReoGrid.ReoGridControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
unvell.ReoGridEditor
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///G:/Projects/ReoGrid-1.1.0-Pro-All-Packages/ReoGrid-1.1.0-Demo-Binary/unvell.ReoGridEditor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5495 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
unvell.ReoGrid
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///G:/Projects/ReoGrid-1.1.0-Pro-All-Packages/ReoGrid-1.1.0-Demo-Binary/unvell.ReoGrid.DLL
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
unvell.ReoScript
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0
CodeBase: file:///G:/Projects/ReoGrid-1.1.0-Pro-All-Packages/ReoGrid-1.1.0-Demo-Binary/unvell.ReoScript.DLL
----------------------------------------
Antlr3.Runtime
Assembly Version: 3.4.1.9004
Win32 Version: 3.4.1.9004
CodeBase: file:///G:/Projects/ReoGrid-1.1.0-Pro-All-Packages/ReoGrid-1.1.0-Demo-Binary/Antlr3.Runtime.DLL
----------------------------------------
unvell.ReoScript.EditorLib
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0
CodeBase: file:///G:/Projects/ReoGrid-1.1.0-Pro-All-Packages/ReoGrid-1.1.0-Demo-Binary/unvell.ReoScript.EditorLib.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5494 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
fno19ftx
Assembly Version: 1.1.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
The Save file
<?xml version="1.0"?>
<grid xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<head>
<meta>
<culture>en-US</culture>
<editor>ReoGrid Core </editor>
<core-ver>1.1.0.0</core-ver>
</meta>
<rows>9</rows>
<cols>2</cols>
<default-row-height>20</default-row-height>
<default-col-width>70</default-col-width>
<settings meta="410222590" />
<script />
</head>
<style bgcolor="#00000000" font="Meiryo UI" font-size="12" align="center" valign="middle" />
<rows>
<row row="0" height="24" last-height="31" text-color="#00000000" />
<row row="1" height="24" last-height="20" />
<row row="2" height="24" last-height="20" />
<row row="3" height="24" last-height="20" />
<row row="4" height="24" last-height="20" />
<row row="5" height="24" last-height="20" />
<row row="6" height="24" last-height="20" />
<row row="7" height="24" last-height="20" />
<row row="8" height="24" last-height="20" />
</rows>
<cols>
<col col="0" width="111" last-width="106">
<style bgcolor="#c5d3d8" color="#5e8897" />
</col>
<col col="1" width="196" last-width="70" />
</cols>
<v-borders>
<v-border row="0" col="0" color="#618998" pos="left" rows="9" />
<v-border row="0" col="1" color="#618998" pos="all" rows="9" />
</v-borders>
<h-borders>
<h-border row="0" col="0" color="#618998" pos="top" cols="2" />
<h-border row="1" col="0" color="#618998" pos="all" cols="2" />
<h-border row="2" col="0" color="#618998" pos="all" cols="2" />
<h-border row="3" col="0" color="#618998" pos="all" cols="2" />
<h-border row="4" col="0" color="#618998" pos="all" cols="2" />
<h-border row="5" col="0" color="#618998" pos="all" cols="2" />
<h-border row="6" col="0" color="#618998" pos="all" cols="2" />
<h-border row="7" col="0" color="#618998" pos="all" cols="2" />
<h-border row="8" col="0" color="#618998" pos="all" cols="2" />
</h-borders>
<cells>
<cell row="0" col="0">Likelihood</cell>
<cell row="0" col="1">Component Name<style color="#5e8897" /></cell>
<cell row="1" col="0">1st</cell>
<cell row="1" col="1">
<style color="#666666" />
</cell>
<cell row="2" col="0">2nd</cell>
<cell row="2" col="1">
<style color="#666666" />
</cell>
<cell row="3" col="0">3rd</cell>
<cell row="3" col="1">
<style color="#666666" />
</cell>
<cell row="4" col="0">4th</cell>
<cell row="4" col="1">
<style color="#666666" />
</cell>
<cell row="5" col="0">5th</cell>
<cell row="5" col="1">
<style color="#666666" />
</cell>
<cell row="6" col="0">6th</cell>
<cell row="6" col="1">
<style color="#666666" />
</cell>
<cell row="7" col="0">7th</cell>
<cell row="7" col="1">
<style color="#666666" />
</cell>
<cell row="8" col="0">8th</cell>
<cell row="8" col="1">
<style color="#666666" bold="true" />
</cell>
</cells>
</grid>
Last edited by asparatu (2016-02-27 08:22:14)
Offline
Hi! Thanks for reporting. It will be fixed as soon as possible.
Last edited by Jingwood (2016-02-27 08:36:40)
Offline
This problem has been fixed in version 1.2, which can be downloaded from: https://reogrid.net/download. Thanks for reporting!
Offline
Hello Jing,
You are welcome. Also is there way i can use my pro licence with the Editor. I tried to use it and tell me there are some missing methods and it will not compile.
Shane
Offline
Can you please paste some your compiling error messages? There should be no problem to use ReoGrid Pro with Editor, I'm using them.
Offline
Please try remove the predefined compiling condition RG_DEBUG from project property page.
If you're using ReleasePro, which doesn't contain the Script Execution feature, please try remove the compiling condition EX_SCRIPT from project property page.
Offline
Hello Jing,
Here are the errors i get
Error 1 'unvell.ReoGrid.Worksheet' does not contain a definition for '_Debug_Validate_BorderSpan' and no extension method '_Debug_Validate_BorderSpan' accepting a first argument of type 'unvell.ReoGrid.Worksheet' could be found (are you missing a using directive or an assembly reference?) G:\Projects\ReoGrid-1.2.0-Pro-All-Packages\ReoGrid-1.2.0-Editor-Source\Editor\ReoGridEditor.cs 903 20 Editor
Error 2 'unvell.ReoGrid.Worksheet' does not contain a definition for '_Debug_Validate_MergedCells' and no extension method '_Debug_Validate_MergedCells' accepting a first argument of type 'unvell.ReoGrid.Worksheet' could be found (are you missing a using directive or an assembly reference?) G:\Projects\ReoGrid-1.2.0-Pro-All-Packages\ReoGrid-1.2.0-Editor-Source\Editor\ReoGridEditor.cs 923 20 Editor
Error 3 'unvell.ReoGrid.Worksheet' does not contain a definition for '_Debug_Validate_Unmerged_Range' and no extension method '_Debug_Validate_Unmerged_Range' accepting a first argument of type 'unvell.ReoGrid.Worksheet' could be found (are you missing a using directive or an assembly reference?) G:\Projects\ReoGrid-1.2.0-Pro-All-Packages\ReoGrid-1.2.0-Editor-Source\Editor\ReoGridEditor.cs 943 20 Editor
Shane
Offline
Remove the predefined compiling condition RG_DEBUG from project property page will fix these.
I will also remove this from future version releases.
Offline
Hello Jing,
Ok.. I will do that
Shane
Offline
Hello Jing,
when i try to use Text Rotation in editor it give me message box says supported by Pro Version and i am using the Pro Version..
shane
Oh, I see.. there are different compiles version for the pro and free version..
I took and tried and still dont work..
Last edited by asparatu (2016-03-02 09:01:01)
Offline
Try change the following code
#if PRO
backupRotateAngle = style.RotateAngle;
#endif // PRO
to
backupRotateAngle = style.RotateAngle;
Offline
Hello Jing,
I seen that line of code I was thinking about taking and removing the if block see if that change anything. I will try it and tell you if worked
Shane
Offline