Skip to main content
Known Participant
December 3, 2007
Question

Printing from a dynamic textbox

  • December 3, 2007
  • 12 replies
  • 602 views
Hello all. I'm just trying to print the contents of a dynamic text box... I want to bind it to a button, so a user can click a button, and upon release, it prints to the machines default printer without asking for anything else, only the contents of a dynamic text box.. is this possible?
This topic has been closed for replies.

12 replies

kovacicAuthor
Known Participant
December 3, 2007
I tried MDM, but its a few hundred $, and I could'nt get Haxe to work. :(

I am truly lost on this one.

Unfortunately, this makes the project a complete failure.

It was worth a shot i guess.

Thank you for everything.
Inspiring
December 3, 2007
Then you can check out 3rd party apps like MDM Zinc, Swf studio etc. They offer extended APIs that let you access the file system, reading and saving files, directories etc... and a whole lot more. I doubt whether you would be able to avoid the printer dialog though.
There's one call Haxe as well that's free (but requires another runtime as well I think, I haven't used it).

For as3 code, there's Adobe AIR.
kovacicAuthor
Known Participant
December 3, 2007
Actually, this will be a stand alone EXE file.. I am hoping to have the contents of a dynamic text box either Emailed, saved as file, printed, or any way to get it out of flash.. anything just short of sitting there with a pen and paper and copying it myself ;)
Inspiring
December 3, 2007
Basically there's nothing you can do directly from flash inside a web page, it needs to go via a server to be saved locally.

If you're using a standalone projector style application then yes you can do that. But not with the regular flash projector. You need a projector wrapper /3rd party tool that gives you access to the file system.
kovacicAuthor
Known Participant
December 3, 2007
Can I atleast export it to a text file or anything>

Is there anything else I can do?
kovacicAuthor
Known Participant
December 3, 2007
Hmm... Ok, Thanks anyways.
kglad
Community Expert
Community Expert
December 3, 2007
lol. yes, their email program (if they have a default one) will require interaction before it sends email.
Inspiring
December 3, 2007
kglad: (I think you meant to say the opposite). But if it were correct, I'd be uninstalling that email client very rapidly, lol.
Inspiring
December 3, 2007
kglad: I'm not sure the last part of this statement is correct: and you can send the contents via email (without server-side scripting) using the user's default email program (if they have one), without user interaction.
kglad
Community Expert
Community Expert
December 3, 2007
you can save the contents to a file without any user interaction (but that will rely on php or some other server-side scripting).

and you can send the contents via email (without server-side scripting) using the user's default email program (if they have one), without user interaction.