Hi Victor,

The way I did solve this was to demand a speciel name for the print file.

In my printing routine a made a short procedure that simply renamesd the
just printed file with a new name.
Something like this:

'--------------------------
Presetting: read from a INI file:
PRINTFILE=C:\Printed.prn
NEWDIR=C:\JUSTPRINTED\
PRINTNAMECOL=NAME

'----------------------------
Printing:
'...all these things that have to be done before printing...

'Print the actual layout window
PrintWin nWID

'Let's wait a while while the print file is created
'I had some problems if I tried to rename the file immidiately after
printing
Call WaitAWhile(5)

'This procudure renames the printfile to the things returned with these
functions (could be variables as well
Call RenamePrintFile(GetPrintFileName$(), GetNewDirVariable$() &
GetCurrentPrintName$())

'Now get the next to print

HTH,
Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS Udviklingskonsulent / GIS-Developer
Kampsax A/S - GIS Software & Solutions
Rugaardsvej 55, 5000 Odense, DK
tel: +45 6313 5013,  dir:+45 6313 5008,  fax: +45 6313 5090
mailto:[EMAIL PROTECTED]
www.kampsax-gis.dk and www.kampsax.dk
Authorized MapInfo Partner & Distributor in Denmark and Norway.
------------------------------------------------------------------------------------------------
Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!
----- Videresendt af Peter M�ller/Kampsax - 26-03-2002 16:43 -----
                                                                                       
                            
                    "vic reeves"                                                       
                            
                    <ixlme@hotmai        Til:    [EMAIL PROTECTED]     
                            
                    l.com>               cc:                                           
                            
                                         Vedr.:  MI-L Dialog Control                   
                            
                    25-03-2002                                                         
                            
                    16:21                                                              
                            
                                                                                       
                            
                                                                                       
                            



Fellow mappers,
Does anyone know of an equivalent command to "alter mapinfodialog"
statement
to directly control common windows dialog. I'm trying to control the
windows
"print to file" dialog and need to seed the filename automatically (batch
plotting thousands of maps). Are there any other ways (API) of control the
"print to file" system?
tia Victor

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to