World is not Supported?

6 posts, 0 answers
  1. James Shelton-Agar
    James Shelton-Agar avatar
    108 posts
    Member since:
    May 2008

    Posted 07 Jul 2009 Link to this post

    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 
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 08 Jul 2009 Link to this post

    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.
  3. DevCraft banner
  4. Rob
    Rob avatar
    13 posts
    Member since:
    Jan 2004

    Posted 16 Jul 2009 Link to this post

    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.
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 17 Jul 2009 Link to this post

    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.
  6. Keerthi M R
    Keerthi M R avatar
    1 posts
    Member since:
    Jul 2009

    Posted 26 Jul 2009 Link to this post

    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
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Jul 2009 Link to this post

    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.
Back to Top
DevCraft banner