• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Printing from server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing from server


  • Subject: Printing from server
  • From: Dan Faber <email@hidden>
  • Date: Sat, 19 Jul 2003 20:14:33 -0600

I have a special need and connot figure out a way to make it work.

I need to print from the server running webobjects. I currently do this using Java2D so I can print from distant browsers to the printer connected to the LAN that webobjects is running on. This requires no interaction with print dialogs, etc.

My problem is that I need to change the printer for individual print jobs, so the document type 1 goes to printer #1, and document type 2 goes to printer #2, etc. I cannot figure out any way to do this.

The current java VM on OSX does not support javax.print. Printservice discovery can be made to work, but the printcenter intercepts all attempts to print to a non-default printer and sends the job to the default printer. I tried using cocoa routines and did actually get a job to print on a non-default printer, but then the application would always crash with an exception of a non-implemented routine for NSPrintInfoDictionary (setObject:forKey) object in C (not a java routine). I tried tweaking the code numerous ways, but apparently I have to be using a real cocoa application, not a webobjects app to get it to not crash. This crash always occurred on a separate thread, allowing me to make a couple of trips to the server before the app died (there was a delay of several seconds).

Trying to use Java 1.1 also does not work, again going to default printer only.

Am I doomed to wait for javax.print?

Thanks for any insight.

Dan Faber
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: What the...??? (SOLVED)
  • Next by Date: Re: Can't modify EO objects! ARGH! =(
  • Previous by thread: Re: EO does not register change with EC??
  • Next by thread: Re: How to really integrate WO with Dreamweaver
  • Index(es):
    • Date
    • Thread