Click to See Complete Forum and Search --> : Print help required
gusmus
01-29-2004, 05:08 AM
Hi Folks, can anyone help me out with a piece of Action Script,
I want to use the "print" feature on a page with pricing and distribution detailes but I don't want to print the actual page in the movie. What I'd like to do is print a formatted word document (.doc) which is stored in the root file of the page. Any help greatly appreciated, Cheers.
necromanthus
01-29-2004, 06:08 AM
Gusmus,you're searching for "Mission Impossible 3" again.
FlashPlayer is not able to print external (doc) files.
Only few simple print commands are available:
print(target, "Bounding box")
printAsBitmap(target, "Bounding box")
printAsBitmapNum(level, "Bounding box")
(where "target" is the instance name of a movie clip to print)
You might try to use the FS Command "Exec" to launch an external BATCH file (able to print your DOC),
but I have doubts that this method is allowed.
Another option would be to use JavaScript ...
;)
FLASHPULSE
01-29-2004, 09:13 AM
Put the information in a txt file and load this txt file into flash with a button. Then have a print button with the above actionscript.
gusmus
01-29-2004, 07:22 PM
Yeah, I thought about that Flashpulse, but the client has a formatted page of the prices and distributors list and want to keep it as it is,,, I'll probably just link the buttons to a standard html page and put a print button on there,, it'll be easier. Thanks for the help,,, and you Sir Necro ( I'll try not to be so impossible next time lol). Cheers
docree
01-30-2004, 04:02 AM
At http://www.dynamidrive.com there is a script that lets you print
from clicking a javascript button on the page and a script that
prints a different document than the current page.
Maybe a combo of the scripts, controled thru javascript
communication in flash, would work.
___________________________________________
On a similar note.
I never got the javascript communication to work.
IE flash comunicates to javascript and javascript
communicates to flash.
DocRee
gusmus
01-30-2004, 07:07 AM
Thanks Doc, I'll have a look at that. The other idea I had was to save the price lists as a bitmap and put them inside a scrolling box but I hit the same old problem (it stops printing at the end of the frame and doesn't print the full contents of the scrolling box). I'll probably just stick with a link to a standard html page and print out from there, shame though because it's a 100% flash presentation and would have been nice to have everything in the same style. Cheers. have a look, I'm still working on it (polishing buttons and text etc, you could also give me an idea of how it loads.
Mayest Camping S.L. (http://www.mayest.com)
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.