Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
tanphat1412
Posts: 125
Registered: ‎11-06-2012
My Device: BlackBerry
My Carrier: Mobifone

How to convert txt file to doc or PDF in cascade

Hi everyone,

 

Like the subject describe, I have a txt file how I can convert it to DOC and PDF file. Can I do it with invoke?

 

Thanks for your help.

Please use plain text.
Developer
javayoung
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: How to convert txt file to doc or PDF in cascade

I don't think that it is possible to be implemented by Cascade or Native right now. Can you program a web service to do it and transfer back?




p(^_^)q
Good good study, day day up
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to convert txt file to doc or PDF in cascade

You can do this in AIR. Create a simple AIR app that is an invoke target for the text to have it save it to a PDF. BBW is suppose to support invoke targets at some point, so if the user does not have it installed, BBW will prompt them. Until BBW has it, you can query the targets and if it is not installed, re-direct the user to BBW to download the app.

May as well make the invocation public so other apps might be able to use it.
Please use plain text.
Developer
ndsmyter
Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C
My Carrier: Mobile Vikings

Re: How to convert txt file to doc or PDF in cascade

I would personally try to use an webservice, as mentioned by javayoung.

But if you really want to do it on the device (because of large files, no internet access..) then I would also use the solution from jtegen.
Maybe there are some apps out there which already provide this feature, so maybe have a look for them first.

If not, I've read a post about it, where it was explained how you can do this, so just do an internet search for more info.


A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter
Please use plain text.