358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
DanNotes spring Seminar: Doing Business with IBM Connections Masterclass
Fri, Apr 25th 2014 89
And off we go
Thu, Jan 23rd 2014 76
Mobile Setup for Connect 2014
Thu, Jan 16th 2014 85
Prepare for Connect 2014
Thu, Jan 9th 2014 94
Call for abstracts for the 50th DanNotes conference on November 27-28 is open
Mon, Aug 26th 2013 122
Do i need more diskspace ?
Fri, Apr 19th 2013 69
Widget toolbox and Update Site
Fri, Apr 19th 2013 77
Top 10
CreateObject(“Word.Application”) Office 97 vs. Office 2010
Mon, Feb 13th 2012 168
Call for abstracts for the 50th DanNotes conference on November 27-28 is open
Mon, Aug 26th 2013 122
Upgrade users local names.nsf
Fri, May 11th 2012 104
Get data from DB2 via LotusScript
Thu, May 10th 2012 102
Prepare for Connect 2014
Thu, Jan 9th 2014 94
Print to special printer in background, without changing default printer
Wed, Feb 15th 2012 89
DanNotes spring Seminar: Doing Business with IBM Connections Masterclass
Fri, Apr 25th 2014 89
Mobile Setup for Connect 2014
Thu, Jan 16th 2014 85
Widget toolbox and Update Site
Fri, Apr 19th 2013 77
And off we go
Thu, Jan 23rd 2014 76


CreateObject(“Word.Application”) Office 97 vs. Office 2010
thomasteske    

In LotusScript when you create a Object af Word in Office 97, you can write something like this.

Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Set wdApp = CreateObject(“Word.Application”)
Set docNew = wdApp.Documents.Add(“L:merge.doc”)
Dim doc As NotesDocument
Dim session As New NotesSession()
Set doc = uidoc.Document
With wdApp.ActiveDocument.Bookmarks
.Item(“Nummer”).Range.Text = uidoc.FieldGetText( “number” )
.Item(“User”).Range.Text = uidoc.FieldGetText( “User” )
…….
End With
wdApp.visible = True

This will open a Word document and put some tekst from a Notes document in it. But if you use this code with Office 2010 you will get a error.

Type Mismatch i method NRun: FROMVAR found, Unknown expected

This is because the create Object has not yet started, when this scrips run. Office 2010 is to slow. It works when you run i debug mode, but not if you run it without.

One workaround is to put a sleep statement in code.

Ex.

Set wdApp = CreateObject(“Word.Application”)
Sleep(3) ‘waits 3 seconds
Set docNew = wdApp.Documents.Add(“L:merge.doc”)

Try if you can get it down to 1 or 2. Depending on your network and CPU

Then the Word Document will open without errors



---------------------
http://teske.dk/?p=61
Feb 13, 2012
169 hits



Recent Blog Posts
89


DanNotes spring Seminar: Doing Business with IBM Connections Masterclass
Fri, Apr 25th 2014 6:10a   Thomas Lindberg
The Danish User Group DanNotes spring Seminar is taking place at May. 13, 2014 where Michael Sampson will be talking about IBM Connections for a whole day. It will take place at IBM Denmark. DanNotes and Intravision have put this together and the seminar is free to members of DanNotes. There still a few seats left. (Should any non members fo DanNotes be interrested – then contact me). Michael will go through 10 “Collaborations Scenarios”, and show how IBM Connections can be used i [read] Keywords: connections ibm best practice
76


And off we go
Thu, Jan 23rd 2014 5:10a   Thomas Lindberg
Time is up. No more waiting. For me Lotusphere /Connect 2014 starts now. On my way to the airport. So looking forward to seeing you all again. Remeber to say hi when you see me. And my suitcase is also with me like always. [read] Keywords: ibm lotusphere
85


Mobile Setup for Connect 2014
Thu, Jan 16th 2014 5:11a   Thomas Lindberg
Taken from the connect2014.com site: Would you like to be able to take advantage of all the benefits of connect2014.com while on the go? Why not, it’s free! Whip out your iOS or Android device and get started!! Get the app: If you do not have the IBM Connections app, you can install it for free. Launch the app: Already have the app? Just downloaded it? What are you waiting for? Tap here to launch the app and our magical server monkeys will supply that technical information for you! Read [read] Keywords: connections ibm apple email google mobile network password server
94


Prepare for Connect 2014
Thu, Jan 9th 2014 5:09a   Thomas Lindberg
I 2 weeks time ill leave for Connect 2014, and I am planning for this year to be a lot better than last year. I am so looking foreward to meet up with all my friends that was there for me last year. You know who you are – Thank you. That put a side – this will be my 11.th Connect/Lotusphere. Please read “The texasswede”‘s blog post about Connect – Connect 2014 – Survive the week! and Andy’s House O’ Blog (Andy Donaldson) – Andy’s Gui [read] Keywords: ibm lotusphere
122


Call for abstracts for the 50th DanNotes conference on November 27-28 is open
Mon, Aug 26th 2013 6:12a   Thomas Lindberg
Speakers wanted – get your abstracts in. Know something interesting? Have an exiting case study? Want to be a speaker? Get in!!! Call for abstracts for the 50th DanNotes conference on November 27-28 is open. Submit your session abstracts now at http://speakers.dannotes.dk/ [read] Keywords:
69


Do i need more diskspace ?
Fri, Apr 19th 2013 8:18a   Thomas Lindberg
[read] Keywords: notes
77


Widget toolbox and Update Site
Fri, Apr 19th 2013 6:17a   Thomas Lindberg
I have recently started a project deploying widgets and plugins to my IBM Notes users. To accomplish that i will have to use the Widget toolbox and update site. When you have made an Updatesite you can install plugins to you IBM Notes clients via policy or Application Management. If you want to install it via policy, you will have to use the Widget toolbox, and you have to use a file called extension.xml. I didn’t know how to make that, and there was a simple way to make one (Thanks to Mr. [read] Keywords: ibm notes notes client application email widget widgets xml




72


Windows 8 RT and floppy disk !
Wed, Apr 10th 2013 12:13a   Thomas Lindberg
How do you insert a floppy disk in a Surface tablet. I want to install a printer and this comes up. Any ideas, or maybe i should call Steve Balmer. [read] Keywords:
58


How do you reduce spam on your blog in WordPress
Fri, Mar 8th 2013 5:11a   Thomas Lindberg
Ever since I started my blog I have had some problems with spam comments on my blog. So I just want to tell some of the things i have done, trying to reduce the spam comments on my blog. And maybe get some ideas to fight it even harder. 1. Close comments on Older posts. This will reduce the amount of spam you can recieve, unless you write many blog post every day, there will be less blog post for the spammers to comment on. 2. Use Captcha plugin I have installed the SI CAPTCHA Anti-Spam plugin [read] Keywords: administration
42


Macbook security
Sat, Feb 23rd 2013 5:11a   Thomas Lindberg
Today i just “hacked” a Macbook password for a friend, who lost all password to the macbook. (Dont ask how). After some help from mr. Pmooneynet I got into the macbook. There is still some problems with the keyring feature, but I have full access to all the files. Why I’am are telling you this? Because it was so easy, one should consider weather ones macbook is Secure enough. The only thing i needed was the install disk, and I was in. So if you are the proud owner of an mac [read] Keywords: macbook password security




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition