hello,
because msdn is so poor... somebody did he write a similar script ?
(DTE/DTE2)
_applicationObj ect.Documents.O pen(docPath, "?string kind?", false);
i must type the "string kind"... but with what ?
thank...
steph 4 4003
because msdn is so poor... somebody did he write a similar script ?
(DTE/DTE2)
_applicationObj ect.Documents.O pen(docPath, "?string kind?", false);
i must type the "string kind"... but with what ?
Hi,
Use one of the view kind constants. For example:
_applicationObj ect.Documents.O pen(docPath, Constants.vsVie wKindCode, false);
Best Regards,
Dustin Campbell
Developer Express Inc.
Steph wrote:
hello,
because msdn is so poor... somebody did he write a similar script ?
(DTE/DTE2)
_applicationObj ect.Documents.O pen(docPath, "?string kind?", false);
i must type the "string kind"... but with what ?
Well, let's start with this quote from MSDN:
"This method supports the .NET Framework infrastructure and is not intended
to be used directly from your code."
Thus the reason the documentation is poor on this method, it is not intended
to be called in code. That being said, try "Auto".
--
Tom Porterfield
because msdn is so poor... somebody did he write a similar script ?
(DTE/DTE2)
_applicationObj ect.Documents.O pen(docPath, "?string kind?", false);
i must type the "string kind"... but with what ?
Also, the preferred way to do this is to use the ItemOperations. OpenFile()
method:
_applicationObj ect.ItemOperati ons.OpenFile(do cPath, Constants.vsVie wKindCode);
This method returns an EnvDTE.Window and you can access the EnvDTE.Document
that was opened through its Document property.
Best Regards,
Dustin Campbell
Developer Express Inc.
ok !
_applicationObj ect.ItemOperati ons.OpenFile is perfect !
thx !
"Dustin Campbell" <du*****@no-spam-pleasedevexpres s.coma écrit dans le
message de news: c1************* *************@n ews.microsoft.c om...
>because msdn is so poor... somebody did he write a similar script ? (DTE/DTE2) _applicationOb ject.Documents. Open(docPath, "?string kind?", false);
i must type the "string kind"... but with what ?
Also, the preferred way to do this is to use the ItemOperations. OpenFile()
method:
_applicationObj ect.ItemOperati ons.OpenFile(do cPath,
Constants.vsVie wKindCode);
This method returns an EnvDTE.Window and you can access the
EnvDTE.Document that was opened through its Document property.
Best Regards,
Dustin Campbell
Developer Express Inc.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: SpamProof |
last post by:
I'd like to be able to print multiple documents are once using vb.net.
What is the best way to do this with out having to print each document
one at a time via a loop .
Can't I send them all to a spool at once or something?
Ideally, I would like the code such that multiple users can print via
my application at the same time.
Any help would be appreciated. Thanks
|
by: Tony Williams |
last post by:
I have an Access database that we use as a document index system. The
documents can be Word, Excel, pdf's etc I have a command button on a form
that opens the document in whatever program is relevant. The code I use
is
Private Sub Cmdstart_Click()
On Error GoTo Err_Handler
Dim strPath As String
If IsNull(DocURLtxt.Value) Then
strmsg = "You must enter the Document URL to use this function
|
by: Lewis Edward Moten III |
last post by:
I have a file that users can download through a web page protected by
forms authentication:
Download.aspx?ID=45
and within that file ...
FileInfo fileToDownload = new FileInfo(fileName);
|
by: Q |
last post by:
Hello you all,
I want to store all kind of files (pdf, doc, xls, txt) in a database. This
is no problem.
The real problem is opening the files from within a .Net application.
I tried several ways to do it:
1. Creating an object of e.g. word to open a document.
2. Taking care of the problem through processes. --> create a process and
run an instance of word...
|
by: Dave |
last post by:
Apologies for the newbie question. I have created a vb.net program for
my company that is designed to work with Word Templates (about forty of
them that we commonly use) that are selected by the user and populated
(with info from an Access database) at run-time, then saved as Word
documents. The program I have coded works fine -- it does what I need
it to do. But it has two problems: (1) it runs very slowly, and (2) it
does not seem to...
| |
by: etuncer |
last post by:
Hello All,
I have Access 2003, and am trying to build a database for my small
company. I want to be able to create a word document based on the data
entered through a form. the real question is this: can Access create
the document and place it as an OLE object to the relevant table?
Any help is greatly appreciated.
Ricky
|
by: torbjorn.maro |
last post by:
I'm the developer of an enterprise level web application that among
other things handles documents. The documents are stored in a
database. There is now simple functionality to check out and download
the document. This is done my a normal response to the browser,
streaming the document. The user then gets the normal option to
'open', 'save' or 'cancel' til downloaded file.
Normal usage would be to save the file to a known location, open...
|
by: =?Utf-8?B?TGllbGE=?= |
last post by:
I have a user who stores her documents on a different drive and when she
attempts to open documents it auto defaults to My Documents instead of her
other drive. Is there a way to change the default for her?
|
by: RAZZ |
last post by:
Hello, Can anyone suggest me solution?
I Need to manage different types of documents (doc,xls,ppt etc) in
server. I have folder structure to maintain these documents in server.
Say folder1 is having all doc files; folder2 is having all xls files
and so on.
Now these documents should not be able to get access through the url
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |