AW: AW: AW: SubWCRev program no more supporting VBA in V1.9x ?
From: Matthias Schäfer <Matthias.Schaefer_at_kopfweb.de>
Date: Tue, 30 May 2017 11:32:01 +0000
Dear Mr. Kueng,
after some researches i can definitely say, that the method .GetWCInfo (Svn.GetWCInfo ActiveWorkbook.FullName, 1, 1) is causing the error and only in conjunction with the VBA-Sub Private Sub Workbook_WindowActivate(ByVal Wn As Window) and only in the new version.
The reason could be: while activating the template in excel this error occurs, because there is not an information from the excel file, which has no file location until it is saved.
He is the shortest possible sub I made for testing:
· The rrror occurs only in the new version
o On “Error GoTo” is not Working in this case
o “If oSvn.IsSvnItem = True Then Else” etc. is not working
The documentation says:
So is this method really necessary? I made some tests without this method, I think it´s working without it?!
Private Sub Workbook_WindowActivate(ByVal Wn As Window)
Dim oSvn As Object
If oSvn.IsSvnItem = True Then
Err:
Mit freundlichen Grüßen / Best regards
Matthias Schäfer
KOPF GmbH / Kapbachstr. 6 / 76829 Landau / Germany
Geschäftsführer: Oliver Kopf - HRB Landau Nr. 3090 - Amtsgericht Landau
Von: Stefan Küng [mailto:tortoisesvn_at_gmail.com]
On Tue, Apr 4, 2017 at 8:10 PM, Stefan Kueng <tortoisesvn_at_gmail.com<mailto:tortoisesvn_at_gmail.com>> wrote:
On 04.04.2017 12:03, Matthias Schäfer wrote:
the bug is only for SVN upgraded version 1.9x!
the scenarios are:
Updated SVN 1.9x and SubWCRevCOM 1.7.11 = Working
SVN 1.7.11 and SubWCRevCOM 1.7.11 = Working
_SVN 1.9x and SubWCRevCOM 1.9x 0 Not Working_
So what can we do now? See facts below
- Documentation is gone since 1.9x for VBA.
Since we can't document every scripting language there is, there's no need for a specific VBA documentation - it's COM after all.
- If SubWCRecCOM 1.9x is replaced with 1.7.11 it is working again!
- How can I check this error furher? (Tools, Dumps?)
What's the output of SubWCRev.exe for the path you use with SubWCRevCOM?
I've just created a word 2016 document and added a macro that uses SubWCRevCOM without any problems: I can read all properties with no issues.
-- ___ oo // \\ "De Chelonian Mobile" (_,\/ \_/ \ TortoiseSVN \ \_/_\_/> The coolest Interface to (Sub)Version Control /_/ \_\ http://tortoisesvn.net ------------------------------------------------------ http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3241114 To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.