Re: crystal report print to file
- From: "gerry" <germ@xxxxxxxxxx>
- Date: Thu, 16 Feb 2006 09:29:45 -0500
i'm not sure which report object you are using - adobe com control I assume
?
I am using the .NET CrystalReports ReportDocument which does not expose
Driver or Port properties.
After some digging it looks like this is not a CR issue but is something
that was built into windows by design ( what the %^&$&^ were they thinking
? ) there is no way to print to file from a program without the savetofile
dialog being displayed to the user.
I have decided to use GhostScript for now, since this won't be used in a
distributable app ( for now anyway ) this dependancy is not that big of a
deal.
Gerry
"Iain Sharp" <iains@xxxxxxxxxxxx> wrote in message
news:gjp8v1t7f5s6qribs9b31fu4fso85uihm8@xxxxxxxxxx
file
In the selectprinter operation, there are three parameters. Driver,
Printer, Port. You should be able to set the port. I'm not sure if you
can set the port to the filename and have it print.
I don't use VB to do this, so I'm not sure the exact code, but there's
a drivername, printername and portname attached to the report object,
you can see what they are set to after doing the manual print to file.
Iain
On Thu, 16 Feb 2006 06:30:08 -0500, "gerry" <germ@xxxxxxxxxx> wrote:
Hi Iain,
sorry but i really have no idea what you are referring to.
- I cannot locate a 'port' property anywhere in the CR ReportDocument
object hierarchy
- I assume that by 'file box' are you referring to the 'Print To File'
dialog ? if so, the whole point of this question was how to print to
not aprogramatically - ie. no user intervention.
Gerry
"Iain Sharp" <iains@xxxxxxxxxxxx> wrote in message
news:mqi8v19a1lj08elrquc17jtoarue48167c@xxxxxxxxxx
printtofile sets the port. Use the port property to set the port.
(Offhand, I don't know if the port should be FILE to get the file box,
or the filename you wish to export to. )
Iain
On Wed, 15 Feb 2006 11:14:14 -0500, "gerry" <germ@xxxxxxxxxx> wrote:
no , export only supports a specific set of export formats.
I would like to have the report saved to disk a as a tiff, which is
expose asupported format - note that there are NO supported image file export
formats ( double doh! )
manually i can print to a fax printer and specify 'print to file' to
generate a tiff file.
but, as i said, the crystal ReportDocument PrintOptions does not
PrintToFilePrintToFile property so there appears to be no way to do this
programatically :-(
Gerry
"Iain Sharp" <iains@xxxxxxxxxxxx> wrote in message
news:j7r5v1ptjo25154qlo1qg2va2nlplv0603@xxxxxxxxxx
On Wed, 15 Feb 2006 02:33:32 -0500, "gerry" <germ@xxxxxxxxxx> wrote:
Since the CrystalReport ReportDocument apparently lacks a
fileoption
( doh ! ), does anyone know of any way print a report to a disk
programmatically ?
Gerry
It's export to file. Check out Exportoptions.
Iain
.
- Follow-Ups:
- Re: crystal report print to file
- From: Iain Sharp
- Re: crystal report print to file
- References:
- Re: crystal report print to file
- From: Iain Sharp
- Re: crystal report print to file
- From: gerry
- Re: crystal report print to file
- From: Iain Sharp
- Re: crystal report print to file
- From: gerry
- Re: crystal report print to file
- From: Iain Sharp
- Re: crystal report print to file
- Prev by Date: tactical solution for automating crystal reports to pdf files
- Next by Date: Re: tactical solution for automating crystal reports to pdf files
- Previous by thread: Re: crystal report print to file
- Next by thread: Re: crystal report print to file
- Index(es):
Relevant Pages
|