Re: Basic VSTO Questions



Thanks!


"Maarten van Stam [1026636]" <aafvstam@xxxxxxxxxxxxxxxxxx> wrote in message
news:OJ5zBMi1FHA.3520@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Michael Rodriguez" <mike@xxxxxxxxxx> wrote in message
>> - Do you have to create a separate project for each Word document you
>> want to manipulate?
>
> No you can attach assemblies to multiple documents:
>
> ' Visual Basic
> Dim sd As ServerDocument = Nothing
> Try
> sd = New ServerDocument("<full document path>")
> sd.AppManifest.Dependency.AssemblyPath = _
> "<full assembly path>"
> sd.Save()
> Finally
> If Not sd Is Nothing Then
> sd.Close()
> End If
> End Try
>
> // C#
> ServerDocument sd = null;
> try
> {
> sd = new ServerDocument(@"<full document path>");
> sd.AppManifest.Dependency.AssemblyPath =
> @"<full assembly path>";
> sd.Save();
> }
> finally
> {
> if (sd != null)
> {
> sd.Close();
> }
> }
>
> For more deployment solutions you can go to and read:
> http://blogs.msdn.com/vsto2/default.aspx
>
>
>> - If you want to have an open Word document with the ability for users to
>> click controls on the Action pane to change the data in the document in
>> real time, are XML tags the only/best option?
>
> It depends on what you are planning to do with your document. In fact you
> can get to all parts of the document from the Action Pane, with or without
> the XML tags.
>
> -= Maarten =-
> http://blogs.officezealot.com/maarten
>


.



Relevant Pages

  • Re: Basic VSTO Questions
    ... > - Do you have to create a separate project for each Word document you want ... Dim sd As ServerDocument = Nothing ... are XML tags the only/best option? ... can get to all parts of the document from the Action Pane, ...
    (microsoft.public.vsnet.vstools.office)
  • Embed xml tags in pdf
    ... Create a Word document that has custom visible xml tags in ... Print/save the document to PDF format. ...
    (microsoft.public.word.vba.general)
  • Basic VSTO Questions
    ... - Do you have to create a separate project for each Word document you want ... - If you want to have an open Word document with the ability for users to ... are XML tags the only/best option? ... the detail data? ...
    (microsoft.public.vsnet.vstools.office)
  • Accessing cached data from within Office document
    ... I have a Word document to which i have added data through a ServerDocument ... I can confirm that the document contains the cached data. ... my declared dataset remains empty. ...
    (microsoft.public.vsnet.vstools.office)
  • accessing remote documents
    ... i have a vsto application on a word document. ... action pane a list of other word documents that are stored on a remote ... "send" the document to the client machine. ...
    (microsoft.public.vsnet.vstools.office)