Jump to content
Software FX Community

Export throws IndexOutOfRangeException


Oops
 Share

Recommended Posts

I am trying to implement a functionality wherein if the user clicks on a chart in the webpage, a new webpage opens up with an expanded version of the chart.

Now my code looks like this

 MemoryStream mm = new MemoryStream(); ((Chart)PreviousPage.FindControl("Chart1")).Export(mm); Chart2.Import(mm ); But when i run this i get a exception like so :

System.IndexOutOfRangeException was unhandled by user code  Message="Index was outside the bounds of the array."  Source="ChartFX.WebForms"

 at the 3rd line where i do the import. Can anyone help in pointing out what might be wrong here.

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...