Print Range Begins Beyond Last Page of Output

In R5, if you issued a command like:

uidoc.print 1,2,0

The print engine would print the current document starting on page two and going to the end. If there wasn’t a page two, it would just print a blank page. No problem.

In 6.5, if you issue the same command, it now throws an error, even if you put “on error resume next” it still throws an error into the user’s face.

From my experience in 6.5, Lotus has made it much more difficult to programmatically use printers. So, unless I am missing something, there appears to be no way to determine the number of output pages –BEFORE– calling the uidoc.print, which means having this annoying error message.

Does anyone know of any way to either supress the message or get the page count (from the printer’s perspective)?

Subject: Resolved - uidoc.print 1,2,0

We have resolved the problem by printing at least one time to a file to determine the pagination count manually. This has bloated our code significantly and slowed printing. Oh well, such is life!

Too bad Lotus decided to put that error message in there - it makes one think that they are really against print automation. Especially with all of the other changes they made to printing that we have had to work around - like changing the current printer and port.

Looks like we will have to file this one under our growing ND6.5 YAWA File - Yet Another Work Around!