473,320 Members | 1,862 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,320 software developers and data experts.

crystal report and sub report

137 100+
hi all,
i'm using vb6 and crystal report9. i just created a report.it works well. and i included one sub report to it and i passed the current date in it's "group header section " as

Expand|Select|Wrap|Line Numbers
  1. Private Sub Subreport1_GroupHeaderSection2_Format(ByVal pFormattingInfo As Object)
  2. psql = "select current_date"
  3. Set rs = db.OpenRecordset(psql)
  4. a = rs(1)
  5. Subreport1_Text1.SetText (a)
  6. end sub
  7.  
it runs well for the first time. i mean when i open the main report and then the sub report it works well. when i close the sub report and re-open it, it does not show the date i passed. it shows nothing.
how to call the subreport1_groupheadersection2_format again whenever i open the subreport. it should show all the time i reopen it.
can anybody help me. i haven't used the sub report before, so little bit unknown about it,
plz help
with regards.
Apr 1 '08 #1
1 2399
Dököll
2,364 Expert 2GB
hi all,
i'm using vb6 and crystal report9. i just created a report.it works well. and i included one sub report to it and i passed the current date in it's "group header section " as

Expand|Select|Wrap|Line Numbers
  1. Private Sub Subreport1_GroupHeaderSection2_Format(ByVal pFormattingInfo As Object)
  2. psql = "select current_date"
  3. Set rs = db.OpenRecordset(psql)
  4. a = rs(1)
  5. Subreport1_Text1.SetText (a)
  6. end sub
  7.  
it runs well for the first time. i mean when i open the main report and then the sub report it works well. when i close the sub report and re-open it, it does not show the date i passed. it shows nothing.
how to call the subreport1_groupheadersection2_format again whenever i open the subreport. it should show all the time i reopen it.
can anybody help me. i haven't used the sub report before, so little bit unknown about it,
plz help
with regards.
Sorry coolminded!

I searched and could not find anything for ya. But I did find a piece of code, not sure of the legality of it; please have a look, see if you get any ideas:-)

Google pulled up nothing concrete.

http://bytes.com/forum/thread760299-...ubreports.html

See ya:-)

Dököll
Apr 3 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
0
by: Dr. Indera | last post by:
hello, i previously posted the questions below on several crystal reports newsgroups, including the one for the company that makes crystal reports, but never got an answer, so i'm hoping that...
2
by: Mythran | last post by:
In .Net, how can I go about and set a Crystal Reports namespace? Right now they use the Root Namespace (VB) from the project. How can I extend the namespace for a single report (which will be set...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
1
by: bthomas71chevy | last post by:
I have just setup a WebServer and all the applications work fine, but when every any of the applications try to generate a Crystal Report the page errors out. "File or assembly name...
0
by: Chris | last post by:
I have the following situation in a VB.Net App I am working on: 1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003. 2.)The datasource for the report is a Stored Proc in a...
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
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the...
11
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I stop receiving this message while calling a crystal report? "The report you requested requires further information." Thanks
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.