Solved

Dynamic Report Header

Posted on 2002-07-30
12
249 Views
Last Modified: 2012-08-13
Can I have Dynamic Report Header according the fields that I retrieve from database for example, Currency, I just need to duisplay some of the currencies for a client but not all, hoe to do it?
0
Comment
Question by:mpy
  • 4
  • 4
  • 3
  • +1
12 Comments
 
LVL 1

Expert Comment

by:kzbera
Comment Utility
Hi,

You could do it provided you know that which currencies you want to display.

Like for your field suppose you are getting USD, CHF
in detail field.
Write a formula which will show you only USD.

formula:  {x.currency}
now on suppress part of the section you write
x.currency = CHF
This will suppress all CHF currencies and you will get rows with USD currencies only

Hope this will solve your problem
0
 
LVL 12

Expert Comment

by:DRRYAN3
Comment Utility
mpy

Are you retrieving all fields but not displaying them on the report, or do you select different fields and use a single report to print them?

Are you using a front end program to call your reports (ie. a VB program)?

DRRYAN3
0
 

Author Comment

by:mpy
Comment Utility
I use ASP to call my report. for example, Client A(1000) has a record with USD, Client B(1001) has a record with JPY, and Client C(1002) with JPY and CHF, then I need to display ClientName  USD  JPY  CHF at the page header. If Client A(1000) has another currency for example, EUR, this currency should display in the report also. My SQL is like "SELECT DISTINCT Currency FROM Trade WHERE Client LIKE '100%'". How can I disply the report header dynamically?
0
 
LVL 12

Expert Comment

by:DRRYAN3
Comment Utility
Sorry for the questions, but I'm still not totally clear on what you are trying to accomplish.

When the report prints will there be more than one client included in the report, meaning that the header will vary for each client?   Will there be a varying number of currency columns for each client?

One approach might be to include the currency designator (USD, JPY) in the recordset you are reporting from along with the other data.  In the group header, use the fields holding the currency designators as your group header and then the detail section has the particulars for the client.

If I've missed the mark, let me know.

DRRYAN3
0
 

Author Comment

by:mpy
Comment Utility
Yes, the header is vary fpr each client, and also vary of currency columns for each client

the following is what i want:

ClientA
page1
-----
          AAA     BBB   CCC   DDD   EEE   FFF   GGG   HHH
----------------------------------------------------------
item A      9       9     9     9     9     9     9     9
item B      9       9     9     9     9     9     9     9
item c      9       9     9     9     9     9     9     9
item D      9       9     9     9     9     9     9     9

"End of page"

page2
-----
          III     JJJ   KKK   LLL   MMM   NNN   OOO   PPP
----------------------------------------------------------
item E      9       9     9     9     9     9     9     9
item F      9       9     9     9     9     9     9     9
item G      9       9     9     9     9     9     9     9
item H      9       9     9     9     9     9     9     9

"End of page"
 
Client B
page1
-----
          AAA     DDD   FFF   GGG   HHH   III  
------------------------------------------------
item A      9       9     9     9     9     9    
item B      9       9     9     9     9     9  
item c      9       9     9     9     9     9    
item D      9       9     9     9     9     9    

"End of page"
0
 
LVL 12

Accepted Solution

by:
DRRYAN3 earned 40 total points
Comment Utility
mpy

I think that's the longest I've ever waited for a reply.

Anyway, you want to use subreports to accomplish what you are trying to do.  Embed Page 1 as sub-report #1 and Page 2 as subreport #2 in a main report, or setup the Page 1 section as your main report and embed the Page 2 part as a sub report in a new section.  Set the section format to force a new page at the end.

DRRYAN3
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:mpy
Comment Utility
But how can I print III~PPP at the second page, and the CcyCode is dynamic?

e.g:
---------------------------------------------------------
subreport:CcyName
---------------------------------------------------------
subreport:ValueForEachCcy
---------------------------------------------------------

if I have 2 subreport(CcyName and ValueForEachCcy) in a main report, how can I display the second set of ccy for example, I can display 10 Ccy in 1 pg, after that I have to display Ccy11~Ccy20 in 2nd page, how to do it? Another problem is, Ccy01~Ccy10 may need to display in 2 pages or more. If i can display 20 row in 1 page,but I have 35 rows and I have 16 Ccy, in page 1, it will show 20 rows for Ccy01~Ccy10. Second page, 20 rows for Ccy11~Ccy20, Page 3, it will show 15 rows for Ccy01~Ccy10 and in page 4 is 15 rows for Ccy11~Ccy20. U get wat I mean? It's really very complicated, and I try to solve it but I can't then continue on other things first. That's y until now I still ask this question. Hope can get a solution from u.
0
 
LVL 7

Expert Comment

by:mnye
Comment Utility
This question has been classified abandoned. I will make a recommendation to the moderators on its resolution in a week or two. I appreciate any comments that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.


If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp

mnye
EE Cleanup Volunteer
0
 
LVL 7

Expert Comment

by:mnye
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept mpy

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
mnye
EE Cleanup Volunteer
0
 
LVL 12

Expert Comment

by:DRRYAN3
Comment Utility
mpy was the asker - what does accepting them do?
0
 
LVL 7

Expert Comment

by:mnye
Comment Utility
DRRYAN3,

meant to put you.  thanks for catching that.

0
 
LVL 7

Expert Comment

by:mnye
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept DRRYAN3

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

mnye
EE Cleanup Volunteer
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now