If you need to be able to print to different directories.  I don't
believe there is a way to take full control of printing to a file using only
Map Basic.  It can be done, however by using a batch language program (such
as WinBatch).  The batch language program is launched by MapBasic after a
layout has been created.  The batch program uses parameters passed from
MapBasic to send key strokes to the print to file dialog.  It's hardly
perfect (you need to be careful about default printers, and timing), but it
works if the user does not interrupt the process.

    Hey MapInfo - How about the ability to send parameters with the print
command for Version 7.0?

Jim -

    I believe Acrobat 5.0 has the ability to combine multiple .pdf files
into one document using it's batch processing tools.

- David Doering
HR and Associates, Inc.

----- Original Message -----
From: "Jim Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 3:52 AM
Subject: RE: MI-L mapbasic - adobe distiller printing


> I have been following this topic with interest as it's something I need to
> do as well. One extra question - Does anyone know if you can add extra
pages
> to an existing pdf? So that every time a loop in MB is finished and a
layout
> is created the new layout is printed to the existing pdf file?
>
> Thanks,
>
> Jim
>
> Jim Wilson
> Hilton of Fern,
> Brechin. Angus, Scotland
>
>
>
>
> > -----Original Message-----
> > From: DPC [mailto:[EMAIL PROTECTED]]
> > Sent: 23 April, 2002 01:45 AM
> > To: Jonathan Stavis; [EMAIL PROTECTED]
> > Subject: RE: MI-L mapbasic - adobe distiller printing
> >
> >
> > The key here, if I remember correctly, is the following.
> > It's been a while since we set this up so my memory is a
> > little rusty...
> >
> > - within MI, set Distiller as the default printer
> > - set the printer properties within MI by unchecking "prompt
> > for PDF filename"
> > - make sure you are giving each layout a unique name, using
> > a routine something like
> > Dim layout_win as Integer
> > Dim sFileName as string
> >
> > ' do all your stuff to create the map and layout
> > ' put in some code to set sFileName based on your project
> >
> > layout_win = frontwindow()
> > Set CoordSys Layout Units "in"
> > Set Window layout_win Title sFileName
> > printwin window layout_win
> >
> > - then loop through this program and each pdf will get it's
> > own unique name - [sFileName].pdf - and you'll never get
> > prompted to hit "enter" to save the file (unless you get a
> > duplicate file name)
> >
> > -----Original Message-----
> > From: Jonathan Stavis [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 22, 2002 4:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: MI-L mapbasic - adobe distiller printing
> >
> >
> > Hello,
> >
> > I am writing a mapbasic program which generates a number of
> > layouts in
> > MI and then prints them to Adobe Distiller.  Does anyone
> > know of a way
> > to specify a path for each pdf file, so as to not have to
> > dismiss the
> > Save As dialog for each layout printed?
> >
> > Printing to a .ps file with Distiller running in the
> > background is also
> > a viable solution.  Is there any way to do this with
> > MapBasic?
> >
> > Thanks in advance,
> > Jon
> >
> >
> > ------------------------------------------------------------
> > ---------
> > 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]
> >
> >
>
>
> ---------------------------------------------------------------------
> 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