Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2005

Tip: Looking for answers? Try searching our database.

How to change the XDocument.URI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
maor110 - 21 Aug 2005 14:01 GMT
Is there a way?

Thanks
Paul Degenkolbe
Patrick Halstead [InfoPath MVP] - 22 Aug 2005 02:01 GMT
Hi Paul,
According to the SDK, it's read only.
Patrick
http://www.autonomysystems.com/

> Is there a way?
>
> Thanks
> Paul Degenkolbe
maor110 - 22 Aug 2005 08:09 GMT
I know, but for example the XDocument.IsDirty also is a read only property
and you can change it with the XDocument.SetDirty method.

(I don't want to see a: 'do you want to save 'Forumlar1' before close' when
the user close the programm without having saved the formular before)

> Hi Paul,
> According to the SDK, it's read only.
[quoted text clipped - 5 lines]
> > Thanks
> > Paul Degenkolbe
Scott L. Heim [MSFT] - 22 Aug 2005 13:27 GMT
Hi Paul,

If you are merely trying to "force" close the form regardless of whether
the user has saved their data, you can use the following on a button's
click event:

- VBScript:
    Dim objXDoc
    Set objXDoc = Application.XDocuments(0)
    Application.XDocuments.Close objXDoc
    Set objXDoc = Nothing

- JScript:
    var objXDoc = Application.XDocuments(0);
    Application.XDocuments.Close(objXDoc);
    objXDoc = null;

Keep in mind though, this does not save the data. If you want to "force" a
save in here as well, you will need to call the "Save" or "SaveAs" method.

Best regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights
maor110 - 22 Aug 2005 17:34 GMT
Thank you.

I now handle to complete save and exit stuff with my own toolbar.

But there are two little problems left.
First I need a event for customizing my toolbar after open the form. In the
form-onload and switchview events, you cannot access the custom toolbar (a
view bounded tollbar).
The second problem is the Xbutton - I disable all normal menus at the
beginning and if the user push the X there is no event where i can enable
them.

Somebody knows help?

Thanks in advance,
Paul Degenkolbe

> Hi Paul,
>
[quoted text clipped - 22 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights
Brühno - 20 Sep 2005 14:04 GMT
Hi,

I develop in Infopath, too and actually have exactly the same both
problems. Have you got any solutions yet? I would be very happy if you
share your knowledge with me in this case :)

Best regards,
Daniel Scholz

maor110 schrieb:

> Thank you.
>
[quoted text clipped - 39 lines]
> >
> > This posting is provided "AS IS" with no warranties, and confers no rights
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.