Re: crystal report print to file



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

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
file
programatically - 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
not a
supported 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
expose a
PrintToFile 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
PrintToFile
option
( doh ! ), does anyone know of any way print a report to a disk
file
programmatically ?

Gerry


It's export to file. Check out Exportoptions.

Iain




.



Relevant Pages

  • Re: Deutsche-Telekom sets the standard for network security! (??)
    ... > that people were so hardcore on security. ... > Several of you say that you report port sniffers almost every time. ... I don't see near the hits you report. ... I have a full firewall system {OpenBSD system set up ...
    (comp.os.linux.security)
  • Re: [Fwd: Re: Nmap/netwag problem.]
    ... Jack wrote: ... and is unfiltered it will result in port 80: ... If the port would now be reported closed that would make netwag look ... If not we need to figure out what kind of scan made netwag report the ...
    (Pen-Test)
  • Re: NIS slowing machine to a crawl?
    ... The problem is NIS. ... Check your computer with a port scanner like grc.com in the internet. ... netstat and if its implementation is bug-free enough to report it ...
    (comp.security.misc)
  • Re: Rhapsody
    ... to authorize access to your playlist. ... would be no bandwidth usage on the server logs. ... >>of add port numbers. ... A quick report over bandwidth usage by internal ...
    (comp.security.firewalls)
  • Re: Storms destroyed 108 offshore platforms
    ... The report *is* correct if not light on the estimates. ... from sea on Oct 18th after a full month of servicing fields below Port ... offshore one needs boats and boats need ports to work out of. ... 300 oil support vessels in port..all seeking fuel and potable water. ...
    (misc.invest.stocks)