Message 1 of 8
How to open and active a new document that is not saved ?

Not applicable
01-18-2018
01:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
As everyone know, we can create new project in the startup page. Then ,we edit it and save it later to a local path.
But i can not open a new document that is not saved.
Because the only way API provided is to use the function named below
OpenAndActivateDocument(string fileName);
The property named ‘PathName’ of document is empty before the document saved.
so i have no fileName to pass to the function OpenAndActivateDocument.
is there you guys met the same situation ? could you please share your solution to me ? Thanks in advance!