Solved

crystal report 9 have field in report be placed into a label in vb

Posted on 2003-10-21
4
144 Views
Last Modified: 2010-04-17
I am using the crviewer. I want to have a label on my vb 6 form that is linked to the field in crystal report. the updating of this will be with this

Private Sub CrReport_AfterFormatPage(ByVal PageNumber As Long)
'
like

label = crreport.field(text).text

something like this. Is this possible.



end sub



0
Comment
Question by:bear23
  • 3
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 9596010
Is there only one record?

Is it on the same form?

It may be.  I check into it.

mlmcc
0
 

Author Comment

by:bear23
ID: 9598248
yes this will be on all the forms. I will have several records(pages) there will be more than one record on a form. We can call the field (Material1) for naming purposes.



0
 
LVL 100

Accepted Solution

by:
mlmcc earned 50 total points
ID: 9606994
I can't do it in CR8.  It may be possible in CR9 but I don't have CR9 to try with.

On the form with the viewer try to create the code.
From the code page
Select the objects and see if any of the have the event you need.
If it is possible, I suspect your code is close.

frm_form1.lblMaterial.caption = CrRpt.fields({Material1}).text
or maybe
frm_form1.lblMaterial.caption = {Material1}

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 10198350
Glad I could help

mlmcc
0

Featured Post

IT, Stop Being Called Into Every Meeting

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!

Join & Write a Comment

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 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

11 Experts available now in Live!

Get 1:1 Help Now