RE: DocumentAfterClose event?
- From: "David Thielen" <thielen@xxxxxxxxxxxxx>
- Date: Sat, 17 Dec 2005 07:30:02 -0800
Hello;
Yes, but the prompt & title are set by Word. I need to know the prompt &
title Word uses in each language for the MessageBox that in English says: "Do
you want to save the changes to Document1?"
If someone is using the Chinese version of Word, and the document is dirty,
and they chose to close the document, they do not want a MessageBox that asks
them in English "Do you want to save the changes to Document1?"
The Yes/No/Cancel will appear in Chinese. But the text & caption need to
also. So how do I get that text from Word for each language?
--
thanks - dave
""Peter Huang" [MSFT]" wrote:
> Hi Dave,
>
> I think we have some misunderstanding here.
> e.g.
> Private Sub wdApp_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As
> Boolean, Cancel As Boolean)
> SaveAsUI = True
> Cancel = True
> MsgBox "Content", vbOKCancel, "Title"
> End Sub
>
> The VB a Code will show a messagebox.
> Prompt String: Content -------------- English
> Tow buttons: OK, Cancel ----------- English
> Title: Title --------------------------------- English
>
> The "Prompt String" and the "Title" can be controlled in the MsgBox call.
>
> If we call MsgBox "ÖÐÎÄ", vbokcancel,"±êÌâ", then it will show the chinese
> character even if we install an english version.
>
> But the Button's text on the MessgeBox is not controled by us. It is
> controled by Operation system.
> We use the API below to check.
> GetSystemDefaultUILanguage
>
>
> Best regards,
>
> Peter Huang
> Microsoft Online Partner Support
>
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
.
- Follow-Ups:
- RE: DocumentAfterClose event?
- From: "Peter Huang" [MSFT]
- RE: DocumentAfterClose event?
- References:
- RE: DocumentAfterClose event?
- From: "Peter Huang" [MSFT]
- RE: DocumentAfterClose event?
- From: "Peter Huang" [MSFT]
- RE: DocumentAfterClose event?
- From: David Thielen
- RE: DocumentAfterClose event?
- From: David Thielen
- RE: DocumentAfterClose event?
- From: "Peter Huang" [MSFT]
- RE: DocumentAfterClose event?
- From: "Peter Huang" [MSFT]
- RE: DocumentAfterClose event?
- From: "Peter Huang" [MSFT]
- RE: DocumentAfterClose event?
- From: "Peter Huang" [MSFT]
- RE: DocumentAfterClose event?
- Prev by Date: RE: COMException while formatting PowerPoint shapes
- Next by Date: RE: How to solve Add-In load problems?
- Previous by thread: RE: DocumentAfterClose event?
- Next by thread: RE: DocumentAfterClose event?
- Index(es):