Maptitude - http://research.umbc.edu/~roswell/maptitude.html

Hi Everyone,

As Jon Verworn has observed, when you right click on a map or a
layout in the Windows Explorer, the "Open" action triggers
Maptitude to be fired up with a DDE statement.

The Open statement uses topic "RunMacro" with the DDE string

   "gis_ui.dbd,G30 Open Filename,%1"

This DDE statement uses the default user interface (gis_ui.dbd) and
executes the GISDK macro "G30 Open Filename" with the filename as
its first argument.

With Windows Explorer Tools-Options, you can modify file types and
add new commands in addition to the "Open" command, e.g. a "Print"
command such as Jon suggested.

In general the macros available in gis_ui.dbd are not documented.
You will have to trust me when I say it doesn't contain a macro to
do exactly what you want to do: First, open a layout and second,
print it.

If you have a GISDK compiler, you can compile such a macro
yourself; it is only 3 lines:

Macro "Open and Print Layout" (FileName)
    Layout = OpenLayout(FileName, )
    PrintLayout( , )
    CloseLayout(Layout)
endMacro

If you compile this macro into an interface called "myprint.dbd" in
the Maptitude program directory, then you can create the Print
command in the Windows Explorer.  It's exactly the same as the Open
command, except the DDE statement would be:

"myprint.dbd,Open and Print Layout,%1"

Now you can right-click on layouts in the Explorer and print the
directly.

-Kjartan 


Original message:

> I would like to be able to print layouts from Windows Explorer using the
> right mouse button.  I added the an option in the view type to print and
> tried to modify the DDE string, "gis_ui.dbd,G30 Open Filename,%1", for the
> open command.  We tried adding PrintLayout() and PrintMap() to the end of
> the string but it didn't work.  I am wondering if there is print
> functionality in the G30 macro that is used in the opening of the file in
> the DDE string.  Also, I was wondering if there is any documentation on the
> G30 macro.
> 
> Jon Verworn


______________________________________________________________________
To unsubscribe, write to [EMAIL PROTECTED]

Reply via email to