Hi,
I wish to open a document window without attaching it to a file. How can i
do this?
For example, i would like to click on a toolbar button to open the document,
without attaching a file to it (i wish to present a data that is already in
memory, and this data is readonly).
BTW: I am working on VSIP 7.1, with the managed package (c#).
Thanks,
Shimon
Bill Foust - 08 Mar 2005 14:16 GMT
I tried to do this as well and was basically told that you cant. So I create
a temp file and hook into the document notifications so that when the
document is saved for closed, I koad a seperate copy and grab the contents.
Bill
> Hi,
>
[quoted text clipped - 9 lines]
> Thanks,
> Shimon
Chris Lovett - 17 Apr 2005 07:59 GMT
Actually, I found that you can use
IVsUIShellOpenDocument::OpenDocumentViaProjectWithSpecific editor then using
the IVsHierarchy that you get back you can make the document act like it has
no file yet (like a miscellaneous file) by setting properties
onIVsUIHierarchy , namely:
VSHPROPID_IsNewUnsavedItem = true
VSHPROPID_Caption = whatever you want
and you can set the VSFPROPID_OwnerCaption on the returned IVsWindowFrame to
whatever you want.
Then when the user tries to save the file they will be prompted for a file
name.
>I tried to do this as well and was basically told that you cant. So I
>create
[quoted text clipped - 20 lines]
>> Thanks,
>> Shimon