This is a migrated thread and some comments may be shown as answers.

Invalid cast from 'System.Windows.Forms.AnchorStyles' to 'Telerik.Reporting.AnchoringStyles'.

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sergiu
Top achievements
Rank 2
Sergiu asked on 27 Oct 2011, 05:23 PM
Hey guys, after converting my class library Reporting project to Q2 2011 I am getting this error on many of my older reports... Invalid cast from 'System.Windows.Forms.AnchorStyles' to 'Telerik.Reporting.AnchoringStyles'. Has anyone else encountered this before? Any thoughts, suggestions are greatly appreciated

2 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 27 Oct 2011, 11:20 PM
You might want to check this out: http://www.telerik.com/versionnotes.aspx?id=2518
0
x
Top achievements
Rank 1
answered on 27 Jun 2012, 10:04 PM
Hi,

I found the cause of this error, it is related to conversion of styles as indicated in the following line, for me I was converting my report to teleriki report q2 2012

Me.currentTimeTextBox.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
if you change  Me.currentTimeTextBox.Anchor to Me.currentTimeTextBox.Anchoring you will raise the error

Invalid cast from 'System.Windows.Forms.AnchorStyles' to 'Telerik.Reporting.AnchoringStyles'.
I hope this will help

Tags
General Discussions
Asked by
Sergiu
Top achievements
Rank 2
Answers by
Patrick
Top achievements
Rank 1
x
Top achievements
Rank 1
Share this question
or