TPHelper Snapshot Issue??!
I am new to the forum. I am working on TP 5.6 Build 72.
Before going in detail, though I am late I want to thank mrtechguy03 for all the contributions to the TP community (They should make you one of the Dir's in Cpwre board of Dir's... or atleast some esop...lol [img]/images/graemlins/grin.gif[/img] )
And now to the Question...
I have referenced the TPHelpercommands.dll (Thanks to mrtechguy03...) in TP for saving snapshots in word documents. But every time I call the function it leaves thew winword process running. so if I execute the script ten times there will be ten winword processes running in the background.
am I missing something here or is it an issue? I am using TP builder ver 1.1.5
1. May be a close snapshot command be included?
2. Option to change the Font color in the word comments would be useful as people can write the log based on severity and distinguish based on colors... [img]/images/graemlins/grin.gif[/img]
Private Function WriteLogResults(MsgType As String, bSnapShot As Boolean, strLogMsg As String, bFileType As FileType)
'Declare Variables for this function
Dim ss As New SnapShot
Dim strWriteMsg As String
Dim strFileType As String
'Call the Error Handler if any error occurs within the function
On Error GoTo WriteResults_ErrorHandler
.DocFontName = "lucida sans"
.DocFontSize = "9"
.DocHeader = "Proof of Test: " & strScriptName
.DocHeaderFontName = "lucida sans"
.DocHeaderFontSize = "14"
.DocFooterFontName = .DocHeaderFontName
.DocFooterFontSize = "10"
'Form the message string which will be written to the word document
strWriteMsg = _
"Message Type : " & MsgType & Chr(10) & _
"Message Details: " & strLogMsg & Chr(10) & _
"Snapshot Reqd. : " & bSnapShot & Chr(10)
If FileExists(strResultsFile) = True And Right(strResultsFile, 4) = ".doc" Then
If bSnapShot = True Then
UserCheck "-89 Critical Error", False, "Global_Log: " & Error.Message & " VB: " & Err.Number & " " & Err.Description
Re: TPHelper Snapshot Issue??!
As far as I know (and I have only used Snapshot a couple of times) but it seems like you can only open the document once and "save" it once. For me once I call the save command the document is close. once I re-open it I think it overrides what is there but I'm not sure. that could be where your problem is.