Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
10
Erster Beitrag:
vor 4 Jahren, 9 Monaten
Letzter Beitrag:
vor 4 Jahren, 5 Monaten
Beteiligte Autoren:
Viggo Poulsen, Giovanni Carella, arronwall, Fabrice Harari, Arie, Abigail Klinton

[WM18] - Print in Android

Startbeitrag von Giovanni Carella am 12.07.2013 08:03

Hi guy.... anyone have a solution for printing or create PDF in android....

Antworten:

Yes ,i found there is a method to print pdf:
See the following C# code:

public void PdfProcessorPrint(string PDFInputFile, String Printer);

von Abigail Klinton - am 19.08.2013 03:53
C#, .NET imaging SDK and Android? I don;t think so.

von Arie - am 19.08.2013 07:04
Hi guy... i haven't found a method to print in android. I have to create a program for merchant and i need to print a document create by my application....

Help me please... I offer a beer to those who solves the problem :cheers:

Quote
Arie Mars
C#, .NET imaging SDK and Android? I don;t think so.


von Giovanni Carella - am 05.10.2013 07:35
Hi Giovanni

How are your printer connected to your Android thing ?
Is it a tablet, a smartphone or something else ?

What about generating and showing a PDF. Then from the pdf viewer, you may have a possibility to print ? Edit: To make a PDF seems to be a difficult taks.

Best regards
Viggo Poulsen

von Viggo Poulsen - am 05.10.2013 09:12
Hi Giovanni

I may have a solution, or a starting point.

Please take a look at the WM18 example 'Android Expense Account'. Here you can create a HTML file and then use Google Print Document to print this via a free google cloud account.

If you send this project to a smartphone (does not seem to work in the emulator) you start by making a new expence. Then you press the Expenses button at the bottom. Select the expense you just made and press the printer at the top.

To see the code, look at Win_Main , local procedure PrintExpenses.

Best regards
Viggo Poulsen.

von Viggo Poulsen - am 05.10.2013 10:22
Hi Viggo,

Thanks for attention....

I able to create application for smartphone and tablet for merchant... The printer can be connect to the device (smartphon/tablet) and i would like to create and show a pdf file becouse we haven't a internet connection on the device.

You have an idea??

Best regards
Giovanni Carella

von Giovanni Carella - am 08.10.2013 08:34
Hi Giovanni

Havent tried it but take a look at the WM18 example 'Android Expense Account'. Look at Win_Main , local procedure PrintExpenses.
Here you create, not a PDF, but a HTML document. In the example this document is sent to Google, but I think it would be possible to show it on your smartphone/tablet instead.

Best regards
Viggo Poulsen

von Viggo Poulsen - am 08.10.2013 08:51
Hi everybody

another way around would be to use the dxxx functions (dtext, in particular) to DRAW the document in an image, then save it on disk, send etc, as a jpg

It would be about the same as printing with the iPrint function, without the report editor

Best regards

von Fabrice Harari - am 08.10.2013 18:47
I have only tied to print PDF files using .NET platform. I have never tried to print them on andriod. Any good sollution? I am learning about the related programs. I want to have a try.


Best regards,
Arron


von arronwall - am 18.11.2013 04:16
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.