Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-10-21
4
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 101

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 101

Accepted Solution

by:
mlmcc earned 100 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 101

Expert Comment

by:mlmcc
ID: 10198350
Glad I could help

mlmcc
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

715 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