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

World is not Supported?

5 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James Shelton Agar
Top achievements
Rank 2
James Shelton Agar asked on 08 Jul 2009, 02:59 AM

Everything works okay in Q12009, however, after I upgraded to Q2, I got "World is not Supported" error, just seeking for any suggestions.

I use the following code to generate and preview the report

Dim reportType As Type = Type.[GetType](String.Format("AgentLive.{0}, AgentLive, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", reportName))  
Dim report As IReportDocument = DirectCast(Activator.CreateInstance(reportType), IReportDocument)  
Me.ReportViewer1.Report = report 

And at report code-behind
 Private Sub dbReport_NeedDataSource(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.NeedDataSource  
        Dim report As Telerik.Reporting.Processing.Report = DirectCast(sender, Telerik.Reporting.Processing.Report)  
        report.DataSource = PrepareDBRPT(dbSource)  
    End Sub 
 
 
  Private Sub detail_ItemDataBound(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles detail.ItemDataBound  
        Dim detail As Telerik.Reporting.Processing.DetailSection = DirectCast(sender, Telerik.Reporting.Processing.DetailSection)  
        Dim section As Processing.DetailSection = TryCast(sender, Processing.DetailSection)  
'Customize something  
    End Sub 

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Jul 2009, 11:33 AM
Hi James,

Although we have suspicions on what might be the culprit, we would appreciate if you send us a sample report (attached to a support ticket) that replicates the issue, just to be on the safe side.
Do you have invisible items that are docked or in a table item in your report? If yes, try making all items visible and see if the issue goes away (just to verify this is the issue).

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rob
Top achievements
Rank 1
answered on 16 Jul 2009, 07:41 PM
Is there a fix for this?  I just ran into the same issue with some report items that were not visible.  Once I made them visible, the error stopped happening.  But, I need them not visible because they don't apply to specific instances of my dynamic report.
0
Steve
Telerik team
answered on 17 Jul 2009, 11:33 AM
Hello Robert,

A possible workaround to "simulate" visible=false, would be to set the height of the item to a very small value and set Value="" when you want the item to be invisible. If there is data to be shown, the textbox would grow and accommodate it, if not, it would not take up any space.
The actual fix would be part of the Q2 SP1, expected at the end of the month.

Please excuse us for the inconvenience.


Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Keerthi M R
Top achievements
Rank 1
answered on 27 Jul 2009, 04:31 AM
Hi Robert,

I had a similar Issue where i had to hide/show a textbox message based on a parameter. Setting Visible=false on a textbox caused the exception. However, i put a panel and embedded the textbox inside the panel, then changed visibility on the panel and it worked without a problem.

Regards,

-- update.
This works only if the panel is the last panel in a docking sequence
0
Steve
Telerik team
answered on 27 Jul 2009, 07:10 AM
Hi Keerthi M R,

Applying Visibility to a Panel would probably work in the exact case you've described. However there is no need for such workaround as this issue has already been taken care of and would be part of the Q2 SP1 release expected at the end of the month.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
James Shelton Agar
Top achievements
Rank 2
Answers by
Steve
Telerik team
Rob
Top achievements
Rank 1
Keerthi M R
Top achievements
Rank 1
Share this question
or