How to print from Xamarin application? - xamarin

Is it possible to print from a xamarin application to a pos printer?
I search in xamarin docs about printing but i only found a microsoft UWP sample. Is this for xamarin development also? Probably i miss something so can anyone guide me how to print from a xamarin application silently to a ECS/POS printer?

Xamarin supports .NET Core technology. Xamarin.Forms is the user interface technology. Printing is something that is not covered with either of those.
You can print with Xamarin.Forms as each platform (iOS, Android, UWP etc) supports printing and Xamarin supports 100% of APIs of each platform, however you need to write the code separately, for example for UWP you can use the link you found above, but it will work only on UWP.

Related

Can I create an Android app using Xamarin only

I'm a Windows developer and have written all sorts of windows client applications using C++ and C#. I wanted to write an Android app and put it on the Google Store, but I'm only equipped with Visual Studio.
I wanted to ask if it is realistic to think that I can create an app, from scratch, including engine and UI using Xamarin only. I saw there are a few Xamarin samples out there, but I didn't want to start only to find out that it's not enough for some reason.
Currently I'm struggling a bit in getting my environment right, but thought I'd throw this question here to you guys ... Maybe it's not even worth starting?
Thanks.
Yes, Xamarin can be used to develop Android apps from scratch. Xamarin has two main libraries that help with this.
Xamarin.Android will give you access to all the Android APIs directly from c#. Note that you still need to know the basic Android concepts like what is an Activity and an Intent.
The other library is Xamarin.Forms. It is a cross-platform library that will give you a basic set of UI controls and widgets that you declare usong an xml syntax, and program with C#. This library has a few limitations, but you can also use the features of Xamarin.Android alongside it to get at the missing features.
Some advice: if possible, develop and debug directly on an Android tablet. Android emulators are not that good and hard to configure. Hope this helps.
There are 2 types of Xamarin you can use.
Xamarin Forms : Which is the unified version that use XAML for the UI. It is very recommended to use this if you are building a simple application.
Xamarin Native : The "native" version of platform that are written in C#, if you want to create Android-only apps, I really recommend this, since it's very similar with the native Android code, but it's wrapped using C# (You can still using nuget package).

How to use PDFNet pdfviwer with annotations in Xamarin Cross platform (xamarin forms in PCL)

I want to implement PDF Viewer with annotations in Xamarin Cross Platform apps (UWP, Android & ios). As per suggestion on (https://components.xamarin.com/gettingstarted/pdfnet-mobile-sdk?version=1.0.0). How can we implement PDFnet PDFViewer in Xamarin Forms portable library? since they written separate libraries and code for different platforms or should we use native apps?.
That is an old version that is no longer updated. To get the latest Xamarin SDK please fill in this form.
https://www.pdftron.com/pdfnet/mobile/request_trial.html

Xamarin.Forms, are there any other application types?

Are there any other way to create Android Application except Xamarin.Forms ?
There is a remark
"The equivalent app written with Xamarin.Forms is called Todo."
at https://github.com/xamarin/mobile-samples/tree/master/TaskyPortable.
So, which application type present at this link?
You can use the Xamarin Native to develop the Android Application. Here is the link to get started with the Xamarin Native with Android: https://developer.xamarin.com/guides/android/getting_started/
And you can also use the Xamarin.Forms Portable and Shared for the Android, iOS, UWP, Windows Phone 8/8.1 and Windows 8.1 application development.
Thank You.

Difference between UWP and Xamarin's UWP?

I was trying to learn basics of xamarin. I came across Adding a Universal Windows Platform (UWP) App and I was trying to figure out advantages of using it over normal UWA with PCL or Shared projects. Is it different from UWP, or does it offers more support from portability?
Xamarin Forms helps dev code once and deploy on cross-platforms.
For front end, there are bit different when you code UWP and Xamarin Forms. stackpanel and stacklayout these kind of UI element. MS is working on XAML standard 1.0 so in future we only have one XAML need to remember.
If you are working on windows 10 app, highly recommended using UWP. There are more docs you can read.
Lot of people using Xamarin Forms to create Android iOS cross-platform apps, and devs lost interesting in support xamarin forms plugins for UWP.
does it offers more support from portability
Yes, or rather I should say that portability is the only practical reason you want to use Xamarin (aside from you being familiar with the platform and not wanting to learn something new, but this seems not to be the case).
Is it different from UWP
As far as I know, Xamarin's UWP is just a UWP project included inside a Xamarin project, so it's basically the same thing.
The answer is: NO
No performance issues
No developing issues
Everything was converted down to the same assembly and run as you expected
However, if you just do mainly in UWP. I suggest not doing it on Xamarin, because the support of new toys come a little bit slower on Xamarin. Right now the communities are waiting for XamlUI Alpha

How can we Integrate Xamarin.Forms Application/Component with Xamarin native Application?

I have developed an app/component using Xamarin.Forms and as per the requirement I need to integrate that component with another app which is developed on Xamarin Native in Android as well as iOS.
Kindly help me with the suggestions or references
I've seen something like that on a sample called Native2Forms.
What it does, at least in Android, is to use a separete activity to integrate the Xamarin Forms PCL (FormsActivity).

Resources