> 1 <

Author Message
ZoE

[99] ServerOp

Add this poster in my list of buddies
Online status


200 posts
http://www.g-productions.net
Location: Greece
Occupation:
Age: 33

#14   2004-06-26 21:14 GMT  

How to set up Lotus Notes

seems to be still problems getting the Printerdll running. Here is a short code snippet showing how to set up your lotusscript working with the printerdll.

Code:
   Dim oPrinter As Variant
   Dim bSuccess As Integer

   Set oPrinter = CreateObject("PrinterControl.CPrinter")

   bSuccess = oPrinter.SetOrientation (2, 2)  ' set landscape the first parameter indicates what kind of print format ( 1 for portrait and 2 for landscape )
                     ' the second parameter indicates which method to use ( 0 for vb printer object, 1 for drivers, 2 for Win Default)

   If bSuccess = True Then
      %REM
      Print what you have to print
      %END REM       
   End If

   oPrinter.ReSetOrientation

   Set oPrinter = Nothing


Hope this helped. If there are still problems drop me a line.
ZoE

The only G-Racer available on earth.
Check out http://g-racer.net

 
 
> 1 <