329 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Do i need more diskspace ?
Fri, Apr 19th 2013 170
Widget toolbox and Update Site
Fri, Apr 19th 2013 139
Windows 8 RT and floppy disk !
Wed, Apr 10th 2013 202
How do you reduce spam on your blog in WordPress
Fri, Mar 8th 2013 217
Macbook security
Sat, Feb 23rd 2013 262
How to control where agents run in clustered environment
Wed, Feb 20th 2013 311
News/Pictures about my mini project
Fri, Feb 15th 2013 267
Top 10
A sad IBM Connect 2013
Wed, Feb 6th 2013 652
CreateObject(“Word.Application”) Office 97 vs. Office 2010
Mon, Feb 13th 2012 571
IBM Connect 2013/Lotusphere preperations
Fri, Jan 4th 2013 415
Sugarboo’s, Hog Ride and IBM Connect
Sun, Jan 27th 2013 397
Upgrade users local names.nsf
Fri, May 11th 2012 390
Get data from DB2 via LotusScript
Thu, May 10th 2012 372
Print to special printer in background, without changing default printer
Wed, Feb 15th 2012 340
How to control where agents run in clustered environment
Wed, Feb 20th 2013 311
News/Pictures about my mini project
Fri, Feb 15th 2013 267
Macbook security
Sat, Feb 23rd 2013 262


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
572 hits



Recent Blog Posts
170


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


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
202


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:
217


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
262


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
311


How to control where agents run in clustered environment
Wed, Feb 20th 2013 6:11a   Thomas Lindberg
At IBM Connect in January during “Ask the Product Managers” sombody asked how he could control where an agent ran in a clustered environment. In agent settings you can specify which server the agent runs on, but if server is down ? What to do. I have made a database that can control this. Here is how it works. Put the database on the server, and create a document for each agent you want to control. in here you set the agent, and which server you would like it to run on. The extern [read] Keywords: agent ibm database properties server
267


News/Pictures about my mini project
Fri, Feb 15th 2013 7:10a   Thomas Lindberg
Look at my Mini project page New info and pictures. [read] Keywords:
242


My new bathroom
Fri, Feb 15th 2013 7:10a   Thomas Lindberg
Yesterday I finally finished my new bathroom. I was a long process, due to a lot of boring excuses and cirkumstances. So this weekend i can soack into my new bathtub and relax. I think I deserve that after a fu…. up start of 2013. I have learned a lot in this process, and 2013 can only get better from here. [read] Keywords:




652


A sad IBM Connect 2013
Wed, Feb 6th 2013 6:10a   Thomas Lindberg
Now i’am safe home from IBM Connect / Lotusphere 2013 and just want to recap. Normally i can think about what i have learned, and what i want to share with others. But this year I lost my god friend and colleague Kenneth Kjærbye in a tragic accident sunday. He had an accident on motorbike sunday near Tampa. It touched us all very much. The last time i saw him was sunday morning, before the Hogride. At that time he was very happy, and I will remember him that way. And I hope you all will. [read] Keywords: ibm lotusphere notes xpages community iphone openntf
397


Sugarboo’s, Hog Ride and IBM Connect
Sun, Jan 27th 2013 12:12p   Thomas Lindberg
Finally we arrived in Orlando at the Swan and Dolphin. I’am so looking foreward to a weak full of expressions. So far is hasen’s been the technical stuff we have spent time on but i was able to ride along the anual Hogride. Yesterday we rode to a little town called mt. Doro, and if you ever get there, be sure to stop by Sugarboo’s for some BBQ. Amasing food! Now we can lean back and IBM Connect/Lotusphere 2013 can begin. [read] Keywords: ibm lotusphere




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