Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Office Business Application Development: MOSS 2007 VSTO ISBN: 978-0-470-37731-4
This is the forum to discuss the Wrox book Professional Office Business Application Development: MOSS 2007 VSTO by Steve Fox, Bill Sheldon; ISBN: 978-0-470-37731-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Office Business Application Development: MOSS 2007 VSTO ISBN: 978-0-470-37731-4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 18th, 2009, 06:10 PM
Registered User
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open excel workbook from Add-in or task pane

I'm trying to create an add-in, that allows users to open excel workbooks or templates and can't seem to find a way to do that.

Any ideas?
Reply With Quote
  #2 (permalink)  
Old February 19th, 2009, 12:28 AM
Wrox Author
 
Join Date: Aug 2003
Location: Oceanside, CA, USA.
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Default

So my apologies if this shows up twice got an error when I first tried to reply.

Your question doesn't have enough context for me to be certain I'm giving you a valid answer. An add-in loads whenever the application loads so I'm not sure what your goal is if you load word to have an add in to open a Word doc (as opposed to the existing Open...)

Having said that you're probably going to want to leverage the Office COM layer to call the open. I don't recall the exact call off teh top of my head but basically you want to pass the document name (full path) to the object layer to have Word or Excel load the appropriate document.

Hope this helps,
Bill
Reply With Quote
  #3 (permalink)  
Old February 19th, 2009, 12:25 PM
Registered User
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Bill -

More context. I have 2 VSTO applications. One is an Excel Add-In, the other is an Excel workbook project, with a task pane.

Ideally what I'd like to have happen is the user installs the add-in, opens excel, and from my add-in ribbon, they are able to open the workbook referenced in my workbook project, which would have the task pane.

VSTO has an easy open workbook method, but that won't work on a VSTO workbook project.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add task in Scheduled Task programatically amitjoshipune C# 2 July 31st, 2008 06:42 AM
large excel pane on mcms page enasc General .NET 0 February 1st, 2007 12:53 PM
large excel pane on mcms page enasc General .NET 0 February 1st, 2007 12:49 PM
Excel 2003 VBA - Need to open a workbook in a fold bablhous BOOK: Excel 2003 VBA Programmer's Reference 0 December 21st, 2006 02:50 PM
Workbook Open anup.bihani Excel VBA 2 November 30th, 2006 01:05 AM



All times are GMT -4. The time now is 08:08 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.