Re: MI - Sum: Integrated mapping with ProViewer
Patrick Phillips wrote: > > I must reiterate that you can do integrated mapping with ProViewer; even > though it was not meant to be used as such. The MapInfo Runtime object does Hi Patrick! This is very interesting. Some time ago, I posted a request on this list for 'intelligent use of ProViewer' Seems as if you have found a way. Why not share your knowledge with the rest of the list? Never mind if the code is pretty, those willing to try it can surely use it anyway. Regards, Mats.E -- ::: :Email/ [EMAIL PROTECTED] ICQ#9517386 : :-: :Mail/ GISKRAFT, Mats Elfstroem, Vaepplingv 21, SE-227 38 LUND, SWEDEN: :Phones: +46 46 145959, +46 70 595 3935 : ::: -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
RE: MI - Sum: Integrated mapping with ProViewer
I must reiterate that you can do integrated mapping with ProViewer; even though it was not meant to be used as such. The MapInfo Runtime object does not have as many methods and properties as the application object. This is where Mr. Lavoie ran into a snag. Instead of using 'ProViewer.do "Set Next Document Parent "...' use the SetParent API call and all is well. You can even add your own tool bar, if you approach the problem from the right direction. I have put together a small Visual Basic Application that works. I'm not saying it is pretty. I'm saying it works. I am willing to provide the code to those who are interested. Yes, even Mr. Lavoie. Patrick J. Phillips GIS Programmer II City of Orlando, FL -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI: SUM: Integrated mapping with ProViewer
The question: >Can ProViewer be integrated into and controlled by a VB program just like MI Pro? >What we have in mind is a VB program that launches an instance of ProViewer and then successively opens workspaces in this instance of ProViewer via the VB routine. >I would like to hear any comments on similar experiences, and how it resembles or differs from integrating a MI Pro instance into a VB program. >Will sum. Thanks in advance. Got two replies: Trey Pattillo: suggests to open ProViewer via the command line with the workspace as a parameter ("C:\Program Files\...\MapInfor.exe D:\...\My_Workspace.wor") Patrick Phillips: suggests that I create the ProViewer object in VB as MapInfo.Runtime instead of MapInfo.Application I tested Patrick's suggestion with the following script in VB: Option Explicit Global ProViewer As Object Private Sub Form_Load() 'Instantiate ProViewer Set ProViewer = CreateObject("MapInfo.Runtime") ProViewer.do "Set Application Window " & Form1.hWnd ' Reparent next map window ProViewer.do "Set Next Document Parent " & Form1.hWnd & " Style 1" ProViewer.do "Open Table ""D:\Bgr\Bgn_40\Que_RTS\Que_RTS"" Interactive" ProViewer.do "Map From Que_RTS" execute it, and get the following error message: "MapInfo ProViewer does not support integrated mapping", thereby establishing Trey's assertion. I will therefore have to launch ProViewer from the command line. Thanks Trey and Patrick for your help. _ Claude Lavoie, a.g. Service du soutien à la clientèle Direction des technologies de l'information Ministère des Transports du Québec 35, rue de Port-Royal Est, salle 5.00 a Montréal (Québec) H3L 3T1 Téléphone: (514) 873-6280 Télécopieur:(514) 873-8203 Courriel: mailto:[EMAIL PROTECTED] _ -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]