IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Script / invoke Crystal Reports?

I'm looking at some process automation here. Among the tools used is Crystal Reports.

\r\n\r\n

Is anyone familiar with this product and able to tell me if its invocation can be scripted? Specifically:

\r\n\r\n
    \r\n
  • Specify report template to use.
  • \r\n
  • Specify external ODBC data source to use (though this may be a fixed location/file).
  • \r\n
  • Specify location and name of generated reports (PDF format).
  • \r\n
\r\n\r\n

Specifics or pointers appreciated.

--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New I'm not up-to-date but I assume it's got OLE interface
Try poking through the exposed objects in various DLLs. ISTR manipulating CR v4 or so back in the day via VB.

Many fears are born of stupidity and ignorance -
Which you should be feeding with rumour and generalisation.
BOfH, 2002 "Episode" 10
New From Google & quick bookstore run: No

There's a "Crystal Reports Automation Server" which appears to provide some of this functionality. Otherwise, queries here, on Google, a friend who'd run the stuff for years, and the CR docs at [link|http://www.staceys.com/|Stacey's Books] here in SF (a most excellent store, conveniently located at the foot of my building) all say "Chuck you, Farley".

\r\n\r\n

Frankly, I'm boggled. This is lame beyond belief.

\r\n\r\n

Anyone care to make me a liar?

--\r\n
Karsten M. Self [link|mailto:kmself@ix.netcom.com|kmself@ix.netcom.com]\r\n
[link|http://kmself.home.netcom.com/|http://kmself.home.netcom.com/]\r\n
What part of "gestalt" don't you understand?\r\n
[link|http://twiki.iwethey.org/twiki/bin/view/Main/|TWikIWETHEY] -- an experiment in collective intelligence. Stupidity. Whatever.\r\n
\r\n
   Keep software free.     Oppose the CBDTPA.     Kill S.2048 dead.\r\n[link|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html|http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html]\r\n
New Well failing all else...
You can drive a mouse and text programatically. If you want to do that with Perl, you can try using something like Win32:GuiTest. I haven't tried it, and good luck noticing any sort of error conditions (scanning by shaved monkeys may be useful)...

If that interests you see [link|http://triumvir.org/articles/guitest-wd-mag/index.html|http://triumvir.org/...wd-mag/index.html] for a quick introduction. If you installed the Activestate version of Perl, it either comes installed or (more likely) can be installed by running the "ppm" command followed by "install Win32-GuiTest".

Oh, and good luck...

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New Is this anything of value?
[link|http://www27.brinkster.com/rboxbycimrid/information.htm|rbox].

Just Googling. Crystal Reports is not my bag.
Alex

Men never do evil so completely and cheerfully as when they do it from religious conviction. -- Blaise Pascal (1623-1662)
New AD-HOC reporting?
Do you mean that you want a blank report, with some structure to it, and then you want to change the recordset on the fly, and send output to PDF format?

I think that Crystal Reports 9.0 can do that, last one I worked with was 8.5 and it could do AD-HOC reports in Visual BASIC and Active Server Pages. I've forgotten how to do that, but it can be done.

With VB or ASP I could:

#1 Load the report template file, anyone I choose.
#2 Specify the recordset or ODBC cnnection.
#3 Print or export the report. I think 9.0 has PDF output now.

You can find out more at:
[link|http://support.crystaldecisions.com/|http://support.crystaldecisions.com/]

Get the new updates and samples:
[link|http://support.crystaldecisions.com/updates/default.asp?ref=default.asp_selectlist_updateandsamples|http://support.cryst..._updateandsamples]

The ones provided on the CDs are buggy, they usually have the updated samples on the CR website. The samples can show you how to change the recordset, etc.


"Bill gates cannot guarantee Windows, so how are you going to guarantee my safety?"
-John Crichton to the Emperor of the Scarrans on [link|http://www.farscape.com|FarScape]
     Script / invoke Crystal Reports? - (kmself) - (5)
         I'm not up-to-date but I assume it's got OLE interface - (tseliot)
         From Google & quick bookstore run: No - (kmself)
         Well failing all else... - (ben_tilly)
         Is this anything of value? - (a6l6e6x)
         AD-HOC reporting? - (orion)

LRPD in a coma, I know, I know... it's serious.
75 ms