|
-
Can't Re- Member
Print help required
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.
humanus somes est divinitus in ipsum
Wiliiam Wallace
-
undead creature
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 ...
-
Senior Member
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.
-
Can't Re- Member
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
humanus somes est divinitus in ipsum
Wiliiam Wallace
-
Degenerate and baise art thou.
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
-
Can't Re- Member
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.
humanus somes est divinitus in ipsum
Wiliiam Wallace
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|