I finally figured out what the problem was. It turned out that we would often send a copy count of 0 as a default and that was being interpreted literally by the newer versions of OpenOffice (we were on a really old version). The product uses a database to pull information from, it just happened that when running on the desktop the copy count was set to one and on the server it was taking a default of 0. When I changed the default on the server it worked.
-----Original Message----- From: Herter, Scott [mailto:scott.her...@napersoft.com] Sent: Friday, December 31, 2010 7:10 AM To: dev@api.openoffice.org Subject: RE: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers through the API I have a stripped down test program and it is working on the server. I am now trying to figure out what is different that is causing the problem. My next steps are to add all the jar files from our product EAR/WAR in to my test EAR/WAR and see if the problem reproduces, if it does, I then start taking them out and try to figure out where the conflict is. If I put them all in and it still works, then I move the printing off to separate threads and see if it is something in the threading that is causing a problem. We do have a connection pool for the connections to OpenOffice to make sure that two threads don't try to access the same instance of OpenOffice at the same time. I have already put the pooling code in to the test program to make sure it wasn't something weird there. -----Original Message----- From: Herter, Scott [mailto:scott.her...@napersoft.com] Sent: Monday, December 20, 2010 11:02 AM To: dev@api.openoffice.org Subject: RE: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers through the API That is encouraging, it could boil down to us setting a property we don't need or setting one with an invalid value causing this which would be easy to fix. Perhaps something that is valid on the desktops but not on the servers. We set a bunch of properties as we set the number of pages, paper size, collation, etc. -----Original Message----- From: Jürgen Schmidt [mailto:juergen.schm...@oracle.com] Sent: Monday, December 20, 2010 10:18 AM To: dev@api.openoffice.org Subject: Re: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers through the API ok, to be more precise -> i have tested on a Windows 2003 Server R2 Enterprise Edition Service Pack 2 ;-) Juergen On 12/20/10 5:03 PM, Herter, Scott wrote: > We didn't try 2003 Server, we tried 2003 R2 server. Considering the > differences between 2008 and 2008 R2, that could be significant. I will try > to get a VM with 2003 server at some point just to validate it. > > -----Original Message----- > From: Jürgen Schmidt [mailto:juergen.schm...@oracle.com] > Sent: Monday, December 20, 2010 10:00 AM > To: dev@api.openoffice.org > Subject: Re: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers > through the API > > as i mentioned before, i have tried the SDK example > <sdk>/examples/java/documenthandling/DocumentPrinter.java just a few > minutes before i wrote the email. Everything works for me on a Win 2003 > server (32bit). > > Juergen > > On 12/20/10 4:46 PM, Herter, Scott wrote: >> That is my next step. At this point with the holidays it boils down to >> time. I hope to have a simple sample done in a week or two. I posted out >> here to see if someone had run in to this before and could say "Oh yeah, >> change security setting blah and it will work". >> >> -----Original Message----- >> From: Jürgen Schmidt [mailto:juergen.schm...@oracle.com] >> Sent: Monday, December 20, 2010 9:39 AM >> To: dev@api.openoffice.org >> Subject: Re: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers >> through the API >> >> Hi, >> >> i would like to suggest that you strip down the problem and try to print >> from a simple remote Java application using the simple bootstrap >> mechanism, load a document and print it via XPrintable ... >> >> If that also does not work feel free to submit an issue with the example >> attached. >> >> I can't remember any problems in case of Win2003 server so far. The >> related SDK example works as expected using the default printer. >> >> I assume that it is a problem with your setup and your J2EE app. Under >> which user account do you try to print on the server? Maybe it's a >> problem with the user. >> >> Juergen >> >> >> On 12/20/10 3:06 PM, Herter, Scott wrote: >>> Sorry, that was the first thing we checked. We also paused all the >>> printers to see if it was going to some other queue. We also find it >>> really weird that it works on desktops but not servers. We used the same >>> copy of JBoss, the same JDK, the same EAR file and it works on Windows >>> desktops and not on the Windows servers. We have even tried both 32 and 64 >>> bit Windows boxes and that doesn't make a difference either. >>> >>> -----Original Message----- >>> From: Cor Nouws [mailto:oo...@nouenoff.nl] >>> Sent: Monday, December 20, 2010 7:56 AM >>> To: dev@api.openoffice.org >>> Subject: Re: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers >>> through the API >>> >>> Hi Herter, >>> >>> Herter, Scott wrote (20-12-10 14:17) >>>> At this point I don't know what the exact problem is or why it is not >>>> working on Windows Servers but is working on Windows Desktops. >>> >>> Maybe something simple/stupid as a default printer? >>> (To be honest, I have no real idea how the difference might be between >>> the XP setting and the server installations) >>> >>> Best - Cor >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org >> For additional commands, e-mail: dev-h...@api.openoffice.org >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org