-
- Need a starting point for a word project
by Whisky Fudge
- 3 Replies
- Last post
by Cindy Meister
- I've never worked with word programmatically before, so I'm looking at some basic advice for some starting points. The project outlines as:
asp.net application creates a new document based on a predefined template that includes fields to be populated from various data sources
User downloads the document (easy)
User makes changes to the document, including adding fields (to be auto-popu
-
- Help regarding Smart Documents.
by Prashnaths
- 3 Replies
- Last post
by Cindy Meister
- Hello this is prashanth im working on smart documents,i installed visual studio tools for office 2005,when i exexute the programe i am unable to see the action pane in my word document and i'm unable to see word document design view in the project.Can you please send me the sample application on smart document and basic requirements to run the application.
Thank You,
Prashanth
-
- QueryInterface for interface Excel._Application failed. (VS 2003)
by edwinzzz
- 3 Replies
- Last post
by Dennis Wallentin
- Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oExcel As Excel.Application
Dim oBook As Object
Try
oExcel = New Excel.Application
oExcel.DisplayAlerts = False
oBook = oExcel.Workbooks.Add
MessageBox.Show("DONE")
Catch ex As Exception
TextBox1.Text = ex.Message
-
- Creating Word 2007 doc and template projects with VSTO SE
by kewpcg
- 7 Replies
- Last post
by Cindy Meister
- I am trying to complete the setup for a machine I am using for Word 2007 and VSTO SE development.
I did a complete reinstall of Visual Studio and VSTO after first removing VSTO CTP v3. (This is in leiu of re-imaging the machine, as the VSTO SE download details suggest might be necessary after running the CTP version).
All is well, except in order to complete the full/original VSTO installati
-
- Is Excel a partial trust caller?
by Sobreira
- 5 Replies
- Last post
by Misha Shneerson - MSFT
- Hello,
I have a ExcelWorkbook solution where I
call a WCF Web Service. Then I have this error:
¡°{"An error occurred creating the
configuration section handler for system.serviceModel/client: That assembly
does not allow partially trusted callers. (C:\\xpto\\bin\\Debug\\ExcelWorkbook1.dll.config
line 30)"}¡±
Well... I already put the ExcelWorkbook1.dll
assembl
-
- How to using COM of Office in code to compatible different client office version.
by JerryCai
- 5 Replies
- Last post
by JerryCai
- Hi,
I encountered a particular problem that how to print the Excel in code with different Excel Version compatibility. I've finished the code to print in code as follow:
using Microsoft.Office.Interop.Excel; object missing = System.Type.Missing; object readOnly = true; object printer = NonLocalizableString.XpsDocWriterPrinter; object saveChanges = Microsoft.Office.Interop.Excel.XlSa
-
- Should I be using SE?
by Hockey Fan
- 9 Replies
- Last post
by Darryn Lavery -- MSFT
- I'm having trouble deploying VSTO apps, despite numerous articles and documentation that I've read. I am wondering if it would help if I downloaded VSTO SE but since the MS Office apps that I'm working with are primarily Office 2003, is SE the right thing to download Will it hurt if I use SE
-
- Is it possible to have an application-level plug-in continue to run after closing the active document?
by r_daneel
- 2 Replies
- Last post
by r_daneel
- The subject says it all: Is it possible to have an application-level plug-in continue to run after closing the active document Essentially, what is happening is that I want to take a document and save it as an html file, then close it to do some manipulation of the .htm file, and then re-open the original word document. Unfortunately, everything stops once I close the document. I can understand t
-
- COM Exception in CommandBars["Task Pane"].Visible = true
by mobigital
- 6 Replies
- Last post
by John R. Durant - MSFT
- I am getting this occasional COM error when trying to ensure that Document Task pane is visible:
This code: Globals.ThisWorkbook.Application.CommandBars["Task Pane"].Visible = true;
Causes this exception: System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Core.CommandBar.set_Visibl
-
- Outlook 2007: removing recipient in UI does not update MailItem properties
by Mark_Rendle
- 2 Replies
- Last post
by Mark_Rendle
- I'm building an Outlook 2007 form region which tracks e-mail activity against a CRM database. When a recipient is added to either the To or CC fields, it triggers the PropertyChange event on the MailItem (using the ItemEvents_10_Event interface), which works fine. However, when a recipient is removed, the event is not triggered. Worse still, unless a new recipient is subsequently added, neither th
-
- Outlook 2003 VSTO SE Addin Toolbar issues
by Kulvinder
- 2 Replies
- Last post
by Kulvinder
- Hi,
Is it possible to load a toolbar in Outlook 2003 VSTO SE Addin everytime even if the Outlook Application object has been started by an automation app like ActiveSync
Regards
Kulvinder Singh
-
- Dynamic creation of CommanBarButton Issue
by Ilya Cherkasov
- 2 Replies
- Last post
by Ilya Cherkasov
- Hi everyone!
I try to make some logic with adding and deleting CommandBars within Word AddIn Project, so that my life gets easier when application business will make it's move.
I have ToolBarController component that can have CommandBars (or CommandButtons) created, deleted, locked, and so on. Here's a little of it's logic (yes it contains issue )
private void AddButton(
-
- VSTO word customization
by Ibrahim Hamouda
- 2 Replies
- Last post
by Ibrahim Hamouda
- Hi all:
I'm working on a project for a client. The process starts by the user openning a windows forms, entering some data and submitting it to a web service. The web service receives the data as a dataset, opens a ServerDocument object to the document application on the server and fills a cached dataset. The user gets a link to the produced document to download. The user opens the document, th
-
- MailItem.Send() progress
by MuscleHead
- 8 Replies
- Last post
by Sue Mosher - Outlook MVP
- Hi,
I'm using VSTO 2005 in Outlook 2007. Is there a way to monitor progress after calling MailItem.Send() It usually works fine, but today for some reason it seems like my code called Send(), the email was never sent, and no exception was thrown. Can I monitor progress, or find out if an error occured
-
- Programming Outlook: Security problems
by PolkaDance
- 2 Replies
- Last post
by Mike Morton - MSFT
- Hi,
I am trying to program an Outlook add-in with VS 2005. I have VTSO for 2005.
The problem I have is when I'm trying to use Dns.GetHostAddresses (with 127.0.0.1 but others that are good with other projects do not work either) and I get a securityexception with this message:
Request for the permission of type 'System.Net.DnsPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyT
-
- VSTO SE & Outlook Calendars
by aaronblaq
- 2 Replies
- Last post
by Sue Mosher - Outlook MVP
- Basically, here's what I'd like to do. Using an Outlook Add-in, I'd like to add a command to the
popup menu when a user right-clicks on an appointment in their
calendar. Is this possible How would I go about doing it
The command would then read some basic information about the
appointment and display a small windows form that would confirm the data and submit
data to a time tracking datab
-
- VSTO 2005 with Visual Studio Pro 2003 and Visual Studio Pro 2005
by youngloc
- 9 Replies
- Last post
by youngloc
- I have been running the following for a while before I installed VSTO 2005 recently:
Office Professional 2003 SP2
Visual Studio Professional 2003
Visual Studio Professional 2005 SP1
I have just installed VSTO 2005, but I cannot find its project templates in Visual Studio 2005's menu: File > New > Project.
In Visual Studio 2005's Help > About..., I can see ' Micr
-
- Assembly Info Missing
by AlexBB
- 10 Replies
- Last post
by AlexBB
- Trying to compile this sttemet:
Microsoft.Office.Tools.Word.Document doc = new Microsoft.Office.Tools.Word.Document ( );
I got an error:
Error 1 The type 'Microsoft.VisualStudio.Tools.Applications.Runtime.BindableComponent' is defined in an assembly that is not referenced. You must add a reference to assembly
'Microsoft.VisualStudio.Tools.Applications.Runtime, Version=8.0
-
- Access ThisDocument Class in Other Classes
by SavitaHK
- 5 Replies
- Last post
by Cindy Meister
- Hi, Can I access, ThisDocument Class - that gets created when we create a new Word Document Project - in some other class In otherwords, can I use ThisDocument Class to create a word document in an application, just by adding the reference of Word document project dll Regards, Savita
-
- How To List Worksheets of an Excel File in C#?
by IBRAHIM ERSOY
- 12 Replies
- Last post
by waeldief
- Hi,
i have been dealing with it for 3 hours and couldnt figure out how i can list the worksheets in c#
is there anyone who had solved that thing,if theres can he/she tell me how can i do it
Thanks a lot...
-
- Problem downloading items from SharePoint list in Outlook
by Munir Husseini
- 1 Replies
- Last post
by John R. Durant - MSFT
- Hi there, I'm developing an addin for Office 2007 using VSTO 2005 SE which utilizes four lists located on a MOSS 2007 server. The user is supposed to click on an STSSync link on a web page for Outlook to synchronize to these lists. For my addin to be able to detect those lists, I needed to use a trick: The STSSync link directs to a web service I've built which acts as if it was the lists.asmx from
-
- Problem selecting and highlighting text range in table of Word while creating bookmark
by radekskowron
- 6 Replies
- Last post
by radekskowron
- Hello,
I want to create bookmark in word document - when user selects the text, clicks mouse right button and chooses item form context menu (Add bookmark) the action for this click event fires such code:
Microsoft.Office.Interop.Word. Range rng;
Microsoft.Office.Interop.Word. Bookmark bm;
applicationObject.ActiveDocument.ActiveWindow.View.ShowBookmarks = true ;
rng = app
-
- Problem with ribbon buttons and macros
by Janjko
- 5 Replies
- Last post
by Janjko
- I made my first custom Ribbon tab, with the following code:
Code Block
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon> <tabs> <tab id="Adnet" label="Adnet" insertAfterMso="Add-ins"> <group id="NetVision" label="NetVision alati">
-
- Convert word doc to pdf
by mrleokarthik
- 14 Replies
- Last post
by imatworknow
- Hi,
I need to convert word document to pdf file using C#.2
Iam having
MS visual studio 2005 professional (and also MS VS.2003 enterprise ed)
MS Office 2007
I have downloaded SaveAsPDFandXPS (used to convert doc to pdf)
Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime (VSTO 2005 SE)
My question is
Do i need "MS visual studio 2005 for o
-
- Error HRESULT E_FAIL has been returned from a call to a COM component.
by GTrz
- 14 Replies
- Last post
by Andy Fearless
- And back to the error with no meanings:
I¡¯ve created a document, published it on an IIS, and opened it from the IIS, resolved the security problems, and now facing this error message:
Error HRESULT E_FAIL has been returned from a call to a COM component.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80004005): Error HRES