Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149508 | Nov 28,2019 07:57 AM UTC | Dec 30,2019 12:27 PM UTC | Xamarin.Forms | 9 |
![]() |
Tags: PDF |
Why can't i use another pdf ?
When i change the pdf with form fields it is giving an error when i want to write to it.
The pdf is named Boord
The error is
System.ArgumentNullException
Message=Value cannot be null.
Parameter name: file
|
We suspect that the issue occurs due to loading of PDF in incorrect format. While loading the PDF as stream, it should be in Assets folder and be set as “Embedded Resources”.
Please try the below solution to overcome this issue.
Right click on the PDF file in Assets folder > Properties > Set Embedded Resources for Build Action.
Please try the above solution in your end and let us know the result.
|
<AbsoluteLayout>
<Button x:Name="Bekijken" Text="Generate Document" Clicked="OnButtonClicked" VerticalOptions="Center" HorizontalOptions="Center"/>
<Entry x:Name="Plaats" AbsoluteLayout.LayoutBounds=".100,.49,.35,.08" AbsoluteLayout.LayoutFlags="All" Placeholder="" Text=""/>
</AbsoluteLayout> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.