Thank you for the solution it works fine .
I have 2 more question plz ,
1- I'm working on project , I have a string and a decimal in sqlite , i bind them in a listview in a content page , how can I print them in pdf file Like invoice app you build
this is my part of code :
<StackLayout>
<ListView ItemsSource="{Binding bankexpand}" x:Name="panda" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal">
<Grid HorizontalOptions="FillAndExpand" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Text="{Binding Type}" FontSize="18" Grid.Column="0" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"></Label>
<!--Text="{Binding Type}"-->
<Label Text="{Binding Amount}" FontSize="18" Grid.Column="1" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"></Label>
<!--Text="{Binding Amount}"-->
</Grid>
</StackLayout>
the bankexpand file is a sqlite file :
public String Type { get; set; }
public decimal Amount { get; set; }
public override string ToString()
{
return string.Format("Type : {0}, Amount : {1}", Type, Amount);
}
2- I have a problem in : Stream imgStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("SyncfusionLogo.jpg");
PdfImage img = PdfImage.FromStream(imgStream); //always in this line there is error Null , I will add a screen shot in rar file.
page.Graphics.DrawImage(img, new RectangleF(g.ClientSize.Width - 200, result.Bounds.Y, 190, 45));
thank you so much for help .
Attachment:
imgprobleme_99a4d871.rar