[mapguide-users] Desktop implementation of MapGuide
alucas
alucas at srtec.com
Mon Jun 11 16:57:10 EDT 2007
Hi Jackie,
DWFViewer is an ActiveX control, in vs2005 you can click "Chose Items..." in
the toolbox and in the tab COM Components if you have the dwfviewer
installed, you will see "Autodesk Dwf Viewer Control". You need to include
this control in the toolbox and you only need to drag & drop this item in
your windows form, the dll's will be added autommatically...
That's all, now, you can use the control trought the
axCExpressViewerControl1 variable that has been created and add the path to
your dwf file, show it etc etc
Jackie Ng wrote:
>
> Hi,
>
> What dll(s) would I need to reference for the dwfviewer api?
>
> Regards,
>
> - Jackie
>
>
> alucas wrote:
>>
>> Hello,
>>
>> It's is possible, I've implemented a viewer in c# based on DWF Viewer, it
>> works fine in the LAN but I've some problems connecting vía internet.
>>
>> You need:
>>
>> Include your webconfig.ini -> When your app start, you need to read the
>> ipaddress and if the user can specify the server, you need to write the
>> webconfig.ini with this ip, because the api (InitializeWebTier) reads
>> this file.
>>
>> You need to add a reference to dwfviewer api
>>
>> You need to add a referende to mapguidedotnetapi.dll
>>
>> Include all dll's in the API in the .exe directory. You can get this
>> dependent files from c:\Program files\mapguideopensource\server\bin
>>
>> You need the resources file, in the webconfig.ini the parameter
>> ResourcesPath points to the resources file.
>>
>> Now, you need to connect to the mapagent and generate a dwf map with the
>> mapping service, then, you can store it in the client and open it with
>> dwfviewer.
>>
>> You don't need to implement the navigation and display tools.
>>
>> This works fine for the LAN, I can acces to all mapguide servers in my
>> LAN. Through internet I'm having problems...
>>
>>
>>
>>
>> Kneo wrote:
>>>
>>> Would it be possible to have a desktop implementation of MapGuide
>>> (offline viewing) ? Basically, the desktop application created in VB.net
>>> will connect to a set of servers to fetch the map and then allow the
>>> user to browse it offline. Since the map is now copied to the local
>>> desktop, the speed and flexibility will be immense.
>>>
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Desktop-implementation-of-MapGuide-tf3900680s16610.html#a11068664
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list