Hi Othman

You can create your own 'tool' using a text editor.

Assuming you have a table that has a unique column name then simply set your
map to show the desired information at the required 'scale' and create a
text file that looks something like this



dim sName as string
dim x,y as float
dim oObj as object
dim i as integer

i = 1

fetch rec i from my_data 
sName = my_data.Unique_name_Column
oObj = my_data.obj
x = centroidx(oObj)
y = centroidy(oObj)
set map window frontwindow() center(x,y)
save window frontwindow as "c:\images\"+sname+".jpg" type "JPEG" width 200
units "mm" 
i = i + 1



copy the last paragraph into the text file - once for each record (text
editor macros can help with this)
save the file as a workspace file (i.e. give it a ".wor" extension) and then
open it from within MapInfo (once your map is set up to go) <<Note I haven't
checked this so if it doesn't work the chances are the syntax needs
tweaking>>

This same technique can be used for printing maps - use the printwin.

Its simply (once you have sorted out the first one), requires no additional
application, and the file can quickly be produced by novices manually or
more elaborate code can be created with any application that the user is
familiar with that can produce text files.  You can even cut and paste
frequent code directly into the mapbasic window (we use this a lot)

Hope this helps - let me know if any part is confusing or if I have missed
the mark altogether.

regards

Martin
==================================
Martin Roundill
GIS Manager
Waitakere City Council
Private Bag 93109
Henderson
Waitakere City
New Zealand

















-----Original Message-----
From: ISSA, OTHMAN [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 3 February 2000 12:13
To: [EMAIL PROTECTED]
Subject: MI re: A quick way to save a window as a *.jpg


Hi folks,

Did any one know of a tool that can open a workspace and automatically
save the workspace (map window or the layout) as a jpg or bmp or jpeg?
If you know could you please tell me where to find it or if you've any
other suggestions to easily and automatically center each of 1055
telephone exchanges in a workspace setting and the window/layout as a
jpg.

Any help would be much appreciated.

Thank you,

Othman Issa
Mgr - Bell Canad
Toronto, Ontario, Canada
Tel: 416-296-6235

P.S. By the way, I think it's time for the members of this list (and
MapInfo Corporation as well) to set up a system to identify and
recognize those who made and always keep this mailing list a very
resourceful place for the MapInfo users in particular and GIS folks in
general.
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [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]

Reply via email to