Stream chartStream = chart.GetStream();
|
Thank you so much for your help.
It did generate a pdf report with image of the chart but when I clicked the button ,SaveAsImage still does not work in iphone.
System.NullReferenceException: Object reference not set to an instance of an object
at Syncfusion.SfChart.iOS.SFChart.UpdateChart () [0x00355] in <3fdf6077fdd84dac9a287c18a745308e>:0
at Syncfusion.SfChart.iOS.SFChart.LayoutSubviews () [0x00006] in <3fdf6077fdd84dac9a287c18a745308e>:0
at at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend_IntPtr (intptr,intptr,intptr)
at CoreAnimation.CALayer.RenderInContext (CoreGraphics.CGContext ctx) [0x0001c] in /Users/builder/data/lanes/4991/80b8487d/source/xamarin-macios/src/build/ios/native/CoreAnimation/CALayer.g.cs:599
at Syncfusion.SfChart.XForms.iOS.ChartDependencyService.SaveAsImage (System.String filename, System.Object obj) [0x00029] in <3fdf6077fdd84dac9a287c18a745308e>:0
at Syncfusion.SfChart.XForms.SfChart.SaveAsImage (System.String filename) [0x00015] in
at ImageDrawing.TabbedPage1.Button_Clicked (System.Object sender, System.EventArgs e) [0x00001] in /Users/Giatec_user/Downloads/Sample 3/ImageDrawing/ImageDrawing/TabbedPage1.xaml.cs:48
at Xamarin.Forms.Button.Xamarin.Forms.IButtonController.SendClicked () [0x00020] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Core\Button.cs:125
at Xamarin.Forms.Platform.iOS.ButtonRenderer.OnButtonTouchUpInside (System.Object sender, System.EventArgs eventArgs) [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\Renderers\ButtonRenderer.cs:91
at UIKit.UIControlEventProxy.Activated () [0x00007] in /Users/builder/data/lanes/4991/80b8487d/source/xamarin-macios/src/UIKit/UIControl.cs:38
at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/4991/80b8487d/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/4991/80b8487d/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at ImageDrawing.iOS.Application.Main (System.String[] args) [0x00001] in /Users/Giatec_user/Downloads/Sample 3/ImageDrawing/ImageDrawing.iOS/Main.cs:17
I had one more question. Is it possible to have a dashed striplines in chart?
<dict> ?xml:namespace prefix = "o" /
<key>NSPhotoLibraryUsageDescription</key>
<string>This app uses photos</string>
…..
….
</dict> |