-1

I'm working on a xamarin PCL project and I want to implement a print function. In my shared code, I have a grid that contains a content view. the content view contains another grid with a custom list that contains data I want to print. as a toolbar item, i have a print button that calls in a dependency service but I don't know how to implement a print functionality for xamarin PCL content views.

The main platform is up.

Any help?

Sunny Jangid
  • 578
  • 4
  • 19
Ties Theunissen
  • 136
  • 2
  • 16

1 Answers1

1

I'm working on a xamarin PCL project and I want to implement a print function. In my shared code.

You could implement a print function via DependencyService for per platform. And invoke the unified interface in your xamarin PCL project.

For the interface implementation about per platform, you could refer to the following document.

Android:Native Printing with Android. IOS : IOS Print Sample. UWP: Print case.

Nico Zhu
  • 32,367
  • 2
  • 15
  • 36