473,472 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Getting started with Crystal Reports...little help in the far court.

I am not that familiar with Crystal Reports, but having read some other
posts I know that the way to integrate the API with Python is through
the COM interface provide by win32all.

However, I have been unable to find any other information on how to get
started. I've used the COM interface before in integrating Excel and a
couple of other things. So I am familiar with how that works. But there
are at least 40 options dealing with Crystal and Business Objects. I
have no idea which makepy file to create or which one provides the
functionality I need.

I'm not looking to do much. All I'm really trying to do is provide one
application where a list of crystal reports can be selected and ran in
series. Right now we have a lot of reports that all have to be run
manually (takes a while). So I think all I need api access to is server
selection, parameter selection, and output formats.

Any pointers in the right direction would be helpful.

Thanks,
Marc

Jan 8 '07 #1
3 14907
Good evening,

Mudcat a écrit :
I am not that familiar with Crystal Reports, but having read some other
posts I know that the way to integrate the API with Python is through
the COM interface provide by win32all.

However, I have been unable to find any other information on how to get
started. I've used the COM interface before in integrating Excel and a
couple of other things. So I am familiar with how that works. But there
are at least 40 options dealing with Crystal and Business Objects. I
have no idea which makepy file to create or which one provides the
functionality I need.

I'm not looking to do much. All I'm really trying to do is provide one
application where a list of crystal reports can be selected and ran in
series. Right now we have a lot of reports that all have to be run
manually (takes a while). So I think all I need api access to is server
selection, parameter selection, and output formats.

Any pointers in the right direction would be helpful.

In my previous job we had to to almost the same thing.
If I remember correctly, for batch printing or file export it was enough
to start with the "CrystalRuntime.Application" class.

It was something along these lines (sorry I don't have any way to test
it now.):
app = win32com.client.dynamic.Dispatch("CrystalRuntime.A pplication")
report = app.OpenReport("c:/path/to/file.rpt")
for table in report.Database.Tables:
table.ConnectionInfo.Password = "passwd"
...
The rest is modeled after Visual Basic. There are tons of examples on
the net.

If you want to show the report on the screen then it is another story.
I only remember the following:
- the application must be a mfc application
- I had to "makepy" a class. I think it was "CrystalReportsViewer".
- create a class derived from both pywin.mfc.activex.Control and
CrViewer (look at the script generated by makepy).
- create a pywin.mfc.Frame, and put there an instance of the previous class.

Voilà, it's not much.
In the hope that you can do something with it.
But don't give up. At the end, it works...

--
Amaury
Jan 8 '07 #2
Mudcat wrote:
I am not that familiar with Crystal Reports, but having read some other
posts I know that the way to integrate the API with Python is through
the COM interface provide by win32all.
.....
Any pointers in the right direction would be helpful.
Like Armury, I worked on Crystal stuff quite a long time ago. Here's a
script I was able to dig up. Edited to protect the innocent. ;-)

import sys
from win32com.client import Dispatch

app = Dispatch('CrystalRunTime.Application')
rep = app.OpenReport('foo.rpt')
tbl = rep.Database.Tables.Item(1)

prop = tbl.ConnectionProperties('Password')
prop.Value = sys.argv[1]

prop = tbl.ConnectionProperties('Data Source')
prop.Value = 'server'

# tbl.TestConnectivity() should return 1

# clear and set 3 parameters
params = rep.ParameterFields
p1 = params(1)
p2 = params(2)
p3 = params(3)

for param in (p1,p2,p3): param.ClearCurrentValueAndRange()

p1.AddCurrentValue(123)
p2.AddCurrentValue(456)
p3.AddCurrentValue('12/31/99')

rep.PrintOut(promptUser=False)

Jan 9 '07 #3
Marc,

I've been able to get some Business Objects COM functionality in
Business Objects 6.5 (the logging in functionality I have to do through a
call to an Excel VBA macro; otherwise things appear to work for what I'm
doing).

Unfortunately, I don't have experience with Python in Business Objects
XI or Crystal Reports. I did have to play with makepy on a couple Business
Objects files to get something useful. I believe I eventually struck
paydirt with busobj.exe (but don't quote me on it - it's been a while).

This information probably isn't terribly useful. The best advice I can
give is to try the respective Crystal Reports and Business Objects XI
executable files with makepy. If there's no joy there, start working with
the dll's and see if they yield something that works.

Hopefully someone with a bit more win32 or BO XI experience will chime
in. In the meantime, good luck.

Carl T.

"Mudcat" <mn******@gmail.comwrote in message
news:11**********************@s80g2000cwa.googlegr oups.com...
I am not that familiar with Crystal Reports, but having read some other
posts I know that the way to integrate the API with Python is through
the COM interface provide by win32all.

However, I have been unable to find any other information on how to get
started. I've used the COM interface before in integrating Excel and a
couple of other things. So I am familiar with how that works. But there
are at least 40 options dealing with Crystal and Business Objects. I
have no idea which makepy file to create or which one provides the
functionality I need.

I'm not looking to do much. All I'm really trying to do is provide one
application where a list of crystal reports can be selected and ran in
series. Right now we have a lot of reports that all have to be run
manually (takes a while). So I think all I need api access to is server
selection, parameter selection, and output formats.

Any pointers in the right direction would be helpful.

Thanks,
Marc

Jan 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: thefirstwml | last post by:
I am using Visual Studio.NET 2002 Professional and am attempting to create a report on Crystal Reports for .NET. I know that Crystal Reports can group on anything, and when I add multiple...
0
by: B. Harwood | last post by:
I am researching the value of purchasing Crystal Reports 9 over using the version of Crystal included with Visual Studio. I am currenly using Visual Studio.NET with C#, writing web applications,...
1
by: rdshultz | last post by:
My company is going to a new software were I have to learn Crystal Reports. Had my first class and I'm a little confused. The instructor said everytime you run a Crystal report you have to do a...
2
by: jason | last post by:
Hello, Does anyone have any experience with 3rd Party Crystal Report viewers? I'm looking for a viewer that allows me to view reports in our web app without having crystal reports installed on the...
2
by: fig000 | last post by:
Hi everyone, I recently wrote a vb.net app which includes some crystal reports. The user has very little money in their budget and have been without a working application for quite a while. This...
1
by: peter.thericgroup | last post by:
People, I am using Visual Studio 2003 v7.1, with framework 1.1 SP1. I also use crystal reports 8.5 to write a lot of my clients reports, and recently upgraded my crystal 8.5 to 9. this however in...
0
by: antonyliu2002 | last post by:
We create a roster report in PDF manually in crstal reports and put it on the web for our web application users to download. We are interested in creating such a PDF report on the fly in our...
0
by: Brad King | last post by:
Hello all, I am going to describe my specific problem. Also, I can program in C++ & Java although I am a little rusty. I took both classes in order to get my MIS degree but have not touched them...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.