On Monday 10 September 2007, Tobias Krais wrote: > Hi Hal, > > > [...] > > >> I think I've been told, and likely here, that in 2.0.x, print > >> listeners like this are no longer necessary, but I'm having a bit > >> of a problem searching and finding this comment and what the > >> background is. > >> > >> In 2.0.x, can I print, then close the document without listening > >> for when the print job is done? Can someone confirm this for me? > >> I've been stuck on this problem for about a month (I thought it > >> was other possibilities, and had another couple issues as well) > >> and I'm at a point where I need to solve it and my client is, > >> understandably, anxious about it. > > > > Tried it without the print listener and it crashed. Guess it still > > needs listeners. > > I wrote a little Java program being able to do the same you want to > do. It opens a document, prints it and closes it. Calling the program > again prints the next document,... > > I also ran into troubles without the print listener. Closing the > document too fast will crash the print job. A print job listener is > good for other reasons, too. > > I can send you my code if needed. Its an easy thing. But well, its > late in Europe and you wont get much help around this time...
Code would be a big help so I could compare what we've got. I'll be glad to send you what I have. Right now I'm working with a wrapper class to handle basic functions. Do I understand, though, that you run the program once for each file you print? Or does it loop through and print multiple files without being re-run? It's not on this topic, but I see you had a question about getting the list of printers in BASIC. I can't do that, but I do have a routine that gets the lists of printers on a system from Java. It doesn't work directly with OOo, but it can get all the printers. Will that help you? Hal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
