Please find attached pdf’s.
With groupbox pdf is my requirement and other one(without groupbox) is what iam getting currently when iam copying chart to word document. I just used groupbox and placed on scichart may be that is where iam going wrong. How to overcome this problem
If you are calling SciChartSurface.ExportToBitma(), it will only export the elements that are actually within the SciChartSurface’s visual children.
So the GroupBox – depending on how it is placed on the SciChartSurface may not be a visual child, therefore will not be exported when you call ExportToBitmap().
To include an element in the visual children of the SciChartSurface, you have three choices:
- You can re-template the SciChartSurface control template. This is complex and over the top for what you want
- You can place elements inside the SciChartSurface.RootGrid, which is simply a grid, at the root of the SciChartSurface
- You can place elements on the SciChartSurface.ModifierCanvas, which is a canvas over the top of the SciChartSurface
- You can place elements inside a CustomAnnotation inside the SciChartSurface.
Once you do that, calling SciChartSurface.ExportToBitmap() should include the elements in the screenshot.
Please login first to submit.