Jump to content
Software FX Community

Annotation in MOSS webpart


anwar

Recommended Posts

I was trying to add Annotation using below code

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Annotations annots = new Annotations();

annots.EnableUI = true;

annots.ToolBar.Visible = true;

annots.Chart = chart;

annots.EnableViewState = true;

chart.Extensions.Add(annots);

 

 

 

AnnotationText text = new AnnotationText(dr["Annotation"].ToString());

text.Attach(GetXAxisPosition(chart, Convert.ToDateTime(dr["Time"]).ToOADate()), Convert.ToDouble(dr["Value"]));

text.Color = Color.Red;

text.PlotAreaOnly = true;

text.AllowMove = false;

annots.List.Add(text);

 

I wanted to display annotation in MOSS webpart? I can see the annotation toolbar. But no annotation at all. Can you please help me?

 

Link to comment
Share on other sites

  • 4 weeks later...

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.

×
×
  • Create New...