User Tag List

Results 1 to 7 of 7

Thread: Having problems using the Print object with Java

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having problems using the Print object with Java

    Hey, folks!

    I seem to be having a hard time using the Print object in a Java stand-alone Internet applet... During run-time I get the message whether to allow the Java applet to access print drivers and I specify "always allow". But when I try to print (or use the "Print Setup" action from the Print object) nothing happens (as if it is not accessing the local printer drivers).

    Does the Java applet need to be signed for it to access local printer drivers? Or perhaps I'm doing something wrong?

    Thank you very much in advance for your help!


    Most appreciatively...

    RGBreality

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Having problems using the Print object with Java

    I think that the app should be signed for it to work.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems using the Print object with Java

    Ah, I see what the problem is...

    It seems that when creating an MMF2 project in Java Stand-Alone Internet Application, global events don't function (meaning, those set up on the application level). I had set up an Active System Box object in which it was to get its text from a String object (both on different frames from each other); when I attempted to print, just a blank piece of paper came out--I think because the text transfer between the two objects did not take place.

    Once I set up the text into a Global String, it solved the problem. So, the problem wasn't with the Print object.

    Thanks for your reply, Francois!



    Most appreciatively...

    RGBreality

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Having problems using the Print object with Java

    >Global events dont work? This is very strange. In the runtime, global events are treated just as normal events in the frame.
    Does it do it only for an Applet, or does it do it also for a normal Java application?

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export Module
    Czentnar's Avatar
    Join Date
    Jan 2007
    Location
    Budapest, Hungary
    Posts
    819
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems using the Print object with Java

    I think it appears only in Applets. As I can remember, I couldn't use widgets in my java application, neither (the object had its own events to behave the same way in every frame). Only normal events worked.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems using the Print object with Java

    I think Czentnar is correct, though my experience with MMF2 Java development is very limited... But I did find that once I moved my events from the Global events and into a frame's events, then all worked well.

    I do find that Global Variables and String still work, as I can pass data that way (which is how I've had to redesign my Java application to meet my needs).


    RGBreality

  7. #7
    Florarentina
    Guest

    Re: Having problems using the Print object with Java

    I'm using javax.print API to print data to shared printer . When running the code on same server where the printer (\\xx.xx.xx.xx\STRS) resides PrintServiceLookup there is no problem with printer . But when running the code on different server having STRS as network printer the PrintServiceLookup fails again no prolem. Server 1 (local STRS) runs on Windows XP Professional, server 2 runs on Windows Server 2003 EE.Any solution or should I share the code.

Similar Threads

  1. Print Object bug
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th December 2013, 02:06 PM
  2. print object
    By brett in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 10th July 2011, 07:04 PM
  3. ...and a print object?
    By Jafa in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 10th December 2010, 05:38 PM
  4. Print Object
    By Steven in forum Extension Development
    Replies: 6
    Last Post: 1st July 2008, 04:05 PM
  5. print object???
    By Jacob in forum Extension Development
    Replies: 2
    Last Post: 8th December 2007, 09:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •