473,418 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Crystal Web Reporting ASP Issues

Greetings all,

I'm having an issue with my Web application. It's deployed
using Crystal Reports 8.0 Developer edition.

I have an RPT file with a relatively large number of
formulas (30+). I did not create this RPT file and I
loathe to change it as I am not very well versed in the
field. I also did not create the ASP to generate reports,
but inherited it too, so I am really speaking from what I
have gathered at looking at the code.

The Report designer wanted a switch to determine if they
should show a certain field as an average or a total.
Instead of making this switch a parameter as I was
expecting them to, they made it a formula, which stumped
me for an hour or so. As the product shipped, this formula
is set equal to false, which means the user always
generates this field in Averages. If the formula is set to
true then the field will be set to Totals.

Now the problem has arisen that there are a large number
of formulas in the Report, and when you use Crystal 8.0
with ASP you must reference the formulas by their index
number as opposed to by the formula name or id. I have no
idea what this formula number would be.

<!---------------- begin sample code ----------------------
--------->
if InStr(strReportName, "ThatOneReport.rpt") > 0 then
set MyFormula = session("oFFC").Item(20)
MyFormula.text = "'" & strHeader1 & "'"
set MyFormula = session("oFFC").Item(21)
MyFormula.text = "'" & strHeader2 & "'"
set MyFormula = session("oFFC").Item(22)
MyFormula.text = "'" & strHeader3 & "'"
set MyFormula = session("oFFC").Item(34)
MyFormula.text = "TRUE"
end if
<!---------------------- end sample code ------------------
-------->

Looking at the code, the previous ASP developer figured
out, somehow, that 20, 21, 22 are three headers at the top
of the report (strings). I don't know how he managed to
figure these index values out. The last two lines are my
doing of trying to find the "switch" formula to toggle
totals and averages. As the product was shipped to the
customer the RPT file just had the switch value hardcoded
to FALSE so it was always generated averages. Argh!

I started incrementally testing the index numbers, but
have not had success and it is extremely aggrevating and
time consuming. I may have hit upon the correct one, since
when I used a certain index the Crystal Viewer generated
an error that a Boolean expression was expected, which is
what I would expect to happen since this is a boolean
variable. So I guess my subquestion is that if, for
example, 34 is the correct formula index, but is looking
for a boolean, what is the method to pass it a boolean
value?

I tried:

MyFormula.bool = TRUE

and

MyFormula.boolean = TRUE

both of which generated ASP errors as being incorrect
methods for MyFormula.

So, what's the secret to finding out which formula indexes
are which (I read on a website that the numbers are
generated as the formulas are added to the Report, which
doesn't help me since the person who generated the report
is long gone as well)? And the inevitable subquestion,
once I had the index, how do I set the boolean formula =
TRUE or = FALSE?

Thanks so much,

Matt Fuerst
Jul 19 '05 #1
0 1457

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

Similar topics

2
by: ferit meftun harmankaya | last post by:
I have some report which are designed in "Crystal Report". I want to run these reports in "Reporting Service" My aim is to convert from extension of Crystal Report (rpt) to extension of reporting...
4
by: Rich Moser | last post by:
My organization is in the midst of making a reporting tool decision. On the table are Crystal and the reporting functionality in Access. - Report distribution is not a factor - it's all local -...
6
by: Robert Schuldenfrei | last post by:
Dear NG, I have done all I can do with Crystal Reports (CR) using the "pull" mode. I now need to generate data in my application, load a DataSet with that data, and "push" this on to a CR...
14
by: LP | last post by:
Hi, I will be taking on a new project developing a web-based "reporting system". The first requirement I got from BI group is "we just want to look at the data". Basically, there is a huge...
7
by: Aaron Schnieder | last post by:
Hi, After battling with Crystal Reports for a while I have started to look for alternatives. It seems like there has got to be something out there that does a better job than Crystal Reports...
5
by: Jay | last post by:
I am getting mixed messages from the asp.net website hosting providers - some say they do not support Crystal Reports due to a $25,000 per cpu licensing fee, others say all I need to do is install...
9
by: Altman | last post by:
I am currently using ASP.Net 2003 and will be upgrading to 2005 sometime in the near future. I have been having issues with using Crystal Reports that were included with .Net to handle my...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.