| View previous topic :: View next topic |
| Author |
Message |
BorisZ
Joined: 23 Jul 2007 Posts: 1
|
Posted: Thu Sep 06, 2007 1:37 pm Post subject: LawManager upgrade to version 5.31 |
|
|
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 |
|
 |
nickpuschak
Joined: 02 Feb 2006 Posts: 9 Location: Conshohocken, PA
|
Posted: Fri Nov 16, 2007 4:26 pm Post subject: Problem with MSComDlg.CommonDialog |
|
|
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 |
|
 |
|
|
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.
|