Law Manager User Group

www.lawmanager.info RSS for www.lawmanager.info

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Sign UpSign Up 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LawManager upgrade to version 5.31

 
Post new topic   Reply to topic    Law Manager User Group Forum Index -> Tech Questions
View previous topic :: View next topic  
Author Message
BorisZ



Joined: 23 Jul 2007
Posts: 1

PostPosted: Thu Sep 06, 2007 1:37 pm    Post subject: LawManager upgrade to version 5.31 Reply with quote

Did someone faces a problem with Common Dialog in LawManager. We are calling it from VB script by
Set dlgOpen = CreateObject("MSComDlg.CommonDialog.1")
This worked OK in 5.0, but returns an error in 5.31
Thanks!
Back to top
View user's profile Send private message Send e-mail
nickpuschak



Joined: 02 Feb 2006
Posts: 9
Location: Conshohocken, PA

PostPosted: Fri Nov 16, 2007 4:26 pm    Post subject: Problem with MSComDlg.CommonDialog Reply with quote

The problem with MSComDlg.CommonDialog is not a LawManager issue, but Microsoft changed the licensing of this and some of the API.
The dialog is only installed with a VB project using the dialog and I think previously it was installed as part of microsoft office.

There is a EvLa.GetPath function to do this. This will put up a dialog for the user to choose a file.

function GetPath([title: OleVariant], [filter: OleVariant], [defaultExt: OleVariant], [initialDir: OleVariant]): WideString

Function GetPath( _
ByVal Title As Variant, _
ByVal filter As Variant, _
ByVal defaultExt As Variant, _
ByVal initialDir As Variant _
) As String

Parameters
Title - The title to display in the dialog title. Usually this should describe what the user is selecting.

filter - What filters to use. This is a vertical bar separated list of items. The items come in pairs when the description is first and then the actual filter. For example: 'Law Manager Script File|*.LMS;*.ECF|Report File (*.QRP)|*.QRP' will result in two file types being available. Either "Law Manager Script File" or "Report File (*.QRP)" are the choices the user will see. Internally the two file types are filtered by *.LMS;*.ECF and *.QRP. Notice that it is possible to have multiple file type filters grouped under one display entry for the user.

defaultExt - The default extension to use. This will cause the dialog to focus on this filter first.

initialDir - The initial directory to use for browsing. If this is not passed in then the current directory of the application will be used.
_________________
Nicholas Puschak
Bridgeway Software
VP Product Management
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Law Manager User Group Forum Index -> Tech Questions All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group


Law Manager® is a registered trademark of Bridgeway Software. The official Law Manager website can be found at http://www.lawmanager.com. 7th Position is neither affiliated with Bridgeway Software in any way, nor responsible for the content, accuracy, or opinions expressed on this message board.