Written by Ben Poole on 20 Aug 2002
Categories / keywords:Win32 API, Printing, Lotusscript
(click on a term to search for related articles at this site)
Add a comment
Background
This is a bit o' code I used to have in a "resources" database you could download from my old site. Someone was trying to search the site for this today, so I'd best whack it back, eh!
Anyway, this code is all about automating that faffy moment when you realise your document really needs to be printed in landscape mode to fully prove its worth — but you just can't rely on users nowadays, can you?
Use
So. The code. It was written by a VB person originally, and then Rob Hilhorst added to the code. I just grabbed it and cleaned it up, storing it in a script library. Download the attached LSS file, and do with it what you will (I suggest creating a blank script library, and then doing a File / Import with the LSS file).
Caveats
This code has been tested in Notes 4.55, Windoze 95, Notes 5.05 and Win2k. In 95 it's cool. In 2k it raises an error, but still works. I suggest you use a handler to determine the error number, and then suppress it, for a cheap and nasty fix — or you could code it properly. Up to you... I have no use for the code right now, which is why I haven't been as conscientious with it as I should, but it's quite nifty.
Attachment(s): libLandscapePrintAPI.lss (12 KB)