Forum Xamarin.Forms

Datepicker

BorisopritBorisoprit Member ✭✭✭

I print a pdf with formfield , but now i want to get the date of a datepicker.

But .Text is not working , how do i get the date of the date picker ?

This is how i fill the formfield

(form.Fields["f1_13(0)"] as PdfLoadedTextBoxField).Text = Datepicker.Text;

Tagged:

Best Answer

  • BorisopritBorisoprit Member ✭✭✭
    Accepted Answer

    Found a solution.

    Made another Editor

    Then before i print in the buttonclick for printing

    Langszij.Text = Datepicker.Date.ToString("dd-MM-yyyy");

    (form.Fields["f1_13(0)"] as PdfLoadedTextBoxField).Text = Langszij.Text;

    Works

Answers

  • BorisopritBorisoprit Member ✭✭✭
    Accepted Answer

    Found a solution.

    Made another Editor

    Then before i print in the buttonclick for printing

    Langszij.Text = Datepicker.Date.ToString("dd-MM-yyyy");

    (form.Fields["f1_13(0)"] as PdfLoadedTextBoxField).Text = Langszij.Text;

    Works

Sign In or Register to comment.