C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




openoffice


Posted Date: 22 Nov 2008      Total Responses: 1

Posted By: sreemani       Member Level: Gold     Points: 1



i am working vb.net2003
i wrote code like that
Dim oSM As Object
Dim arg(), oDesk, oDoc As Object
oSM = CreateObject("com.sun.star.ServiceManager")
oDesk = oSM.CreateInstance("com.sun.star.frame.desktop")
oDoc = oDesk.LoadComponentFromUrl("private:factory/swriter", "_blank", 0, arg(2))

but i got error.

An unhandled exception of type 'System.NullReferenceException' occurred in OpenExcel.exe

Additional information: Object reference not set to an instance of an object.
Please modify my code.





Responses

Author: Sravya    03 Dec 2008Member Level: GoldRating:     Points: 2

Hi,

visit my blog for more resources..
www.codesnippetforyou.bogspot.com

thanks and regards



Post Reply
You must Sign In to post a response.
Next : Update Query
Previous : insert mode in vb.net windows application
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use