Page 1 of 6

How to do print currnt page when click on Print button.

Posted: Tue Jan 28, 2014 10:59 am
by navya kodali

Hi,

How to work with printing a page functionality when click on print buton.


How to do print currnt page when click on Print button.

Posted: Tue Jan 28, 2014 12:13 pm
by Maryna Brodina

Hello! Please take a look here https://getsatisfaction.com/apperyio/...


How to do print currnt page when click on Print button.

Posted: Tue Jan 28, 2014 12:38 pm
by navya kodali

Hi,

how to connect printer(hardware device) when click on print button in application.


How to do print currnt page when click on Print button.

Posted: Tue Jan 28, 2014 1:23 pm
by Maryna Brodina

On button click run JS prewindow.print()/pre


How to do print currnt page when click on Print button.

Posted: Wed Jan 29, 2014 11:00 am
by navya kodali

Hi,
Thanks for helping...

This line of code working in web. But when i export this project into ios devices(iphone,ipad) this button not working.what should i do for printing functionality in devices also?


How to do print currnt page when click on Print button.

Posted: Wed Jan 29, 2014 3:08 pm
by Maryna Brodina

Hello! You would need to search for plugin, for example https://github.com/katzer/cordova-plu...


How to do print currnt page when click on Print button.

Posted: Thu Jan 30, 2014 6:53 am
by navya kodali

I Have downloaded plug in,added in my project.but its not working..
where should i add that plugin?
eithr in Apprey.io or afer exporting as xcode project?
let me know how to add that plugin into project?


How to do print currnt page when click on Print button.

Posted: Thu Jan 30, 2014 5:58 pm
by Kateryna Grynko

Hi Navya,

Here is an example of adding a plug-in: http://docs.appery.io/documentation/u...


How to do print currnt page when click on Print button.

Posted: Fri Jan 31, 2014 6:04 am
by navya kodali

Hi Katya,

I have followed documentation.added 3rd party plugin(Phonegapprintplugin-master) into "cordovaLibPlugins". after added this plugin is in blue color.

May i do anything additionally?

In Documentation button onclick add javascipt like "Beep.beep();"

In my application i have added button onclick javascipt code "PrintPlugin.print();"

when i export app into xcode project in project folder it is not showing added plugin.
and when i click on print button no action is done.

Please help me what to do?


How to do print currnt page when click on Print button.

Posted: Fri Jan 31, 2014 11:43 am
by Maryna Brodina

Hello! Did you add this plugin https://github.com/katzer/cordova-plu...? Please check Using the plugin section in plugin description.