A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Print help required

  1. #1
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663

    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

  2. #2
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    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 ...

  3. #3
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    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.

  4. #4
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663
    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

  5. #5
    Degenerate and baise art thou. docree's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    390
    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

  6. #6
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center