Article View: comp.groupware.lotus-notes.programmer
Article #11Automation and NotesUIDocument.Print
From: Alex Dzienis
Date: Thu, 18 Mar 2004 17:42
Date: Thu, 18 Mar 2004 17:42
29 lines
2267 bytes
2267 bytes
I am trying to automate Notes documents printing using Notes Ole Automation. I am stuck with "Incorrect argument type: integer expected" error when calling NotesUIView.Print(1) No matter where I am calling this method (Delphi, VB) , no matter what type of parameter I am trying to use (all types of integer, Object, OleVariant, array) automation keep responding with "Incorrect argument type: integer expected" exception. If I do not pass any parameter the print dialog pops up and I do not need that. NotesUIDocument.Print works fine with and without parameter but that way security dialogs may pop up. Has anyone else succeeded in calling NotesUIView.Print through automation? By the way, type library automatically registered with Notes 6 contains very limited descriptions of notes ole interfaces so it is impossible to use early binding. Registration of nlsxbe.dll does the trick, but has only back end classes described, no *UI* versions. Is there dll which I can register to have better type library for Notes front end classes? I guess it should be because a lot of examples I have seen so far use early binding. Thank you, Best Regards, Alex Dzienis
Technical Details
Message-ID:
<9298edc7.0403180942.6f720578@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews2.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1119d3,2530282dd0bfbbd6,start X-Google-Attributes: gid1119d3,public X-Google-Thread: f962e,2530282dd0bfbbd6,start X-Google-Attributes: gidf962e,public X-Google-Thread: fd196,2530282dd0bfbbd6,start X-Google-Attributes: gidfd196,public X-Google-ArrivalTime: 2004-03-18 09:42:08 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews2.google.com!not-for-mail From: adzienis@ibisconsulting.com (Alex Dzienis) Newsgroups: comp.groupware.lotus-notes.programmer,borland.public.delphi.oleautomation,microsoft.public.vb.ole.automation Subject: Automation and NotesUIDocument.Print Date: 18 Mar 2004 09:42:07 -0800 Organization: http://groups.google.com Lines: 29 Message-ID: <9298edc7.0403180942.6f720578@posting.google.com> NNTP-Posting-Host: 64.17.224.166 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1079631728 28972 127.0.0.1 (18 Mar 2004 17:42:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 18 Mar 2004 17:42:08 +0000 (UTC)