Profile Picture

ASP.Net WebForms::ThinWebClient: Export Chart as a picture

Posted By joern kunze 7 Years Ago

ASP.Net WebForms::ThinWebClient: Export Chart as a picture

Author
Message
joern kunze
Problem Posted 7 Years Ago
View Quick Profile
Junior Member

Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)Junior Member (13 reputation)

Group: Forum Members
Last Active: 3 Months Ago
Posts: 86, Visits: 221
Hi Experts,

I want to export the chart as a picture. Using the Chart-build-in buttons works fine:
NThinChartControl1.Toolbar.Items.Add(new NToolbarButton(new NSaveImageAction(DateTime.Now.ToString( "yyyyMMdd_HHmmss") + "__Chart", new NPngImageFormat(), true, new NSize(0, 0), 96)));

But I want tu use my own Button-Control to export the image. I tried to use the NThinChartControl1.ImageExporter.SaveToFile - function. Basically it is working - but the exported picture shows only the X/Y Axis and no data at all:



What must be done to get also the data ?

Furthermore, I would like to toggle DataZoomToolAction <-> DataPanToolAction functions also from my own button-control. How can I do this ?
When I use the build-in-buttons it is working:
     NThinChartControl1.Toolbar.Items.Add(new NToolbarButton(new NToggleDataZoomToolAction()));
      NThinChartControl1.Toolbar.Items.Add(new NToolbarButton(new NToggleDataPanToolAction()));


Thanks for your help,
Best regards,
Joern




Similar Topics


Reading This Topic