Event fired before a target file is written.

Syntax:

BeforeWriteTargetFile(Project As TranslationProject, ProjectFile As ProjectFile, TargetFileName As String, PseudoTranslation As Boolean, Cancel As ReturnBoolean)
Parameters: Project Project containing the project file from which the target file is written.
ProjectFile Corresponding project file to the target file.
TargetFileName Name and path of the target file.
PseudoTranslation True: A pseudo-translation will be written. False: No pseudo-translation will be written.
Cancel False: No cancellation of the write process. The target file will be written. True: Write process will be canceled. The target file will not be written.

Example:
' in a class module "EventClass"

Dim WithEvents App As Application

Private Sub App_(ByVal Project As TranslationProject, ByVal ProjectFile As ProjectFile, _
	ByVal TargetFileName As String, ByVal PseudoTranslation As Boolean, _
	ByVal Cancel As ReturnBoolean)
 
[...]

End Sub

' in a module

Public EventManager As New EventClass

Sub TestMacro()
	Set EventManager.App = Application
End Sub

See also:

Class Application

Last Updated: 04/26/05