?
Solved

Crystal report XI To change text data during Runtime

Posted on 2008-10-20
3
Medium Priority
?
611 Views
Last Modified: 2013-12-12
Hii Experts

I am Using Crystal report XI to print a letter. I am calling it Through VB6 using Crystal Report XI runtime.

I have two radio button on my form stating two director name . The letter will contain either of two Directors as an authorized signatory.

The problem how can i insert this text into the report.( If i use a blank Text it say cannot modify readonly property. And if i use Unbounded Field it say object not found.)

Please Suggest Its urgent.




Dim crxApp As CRAXDDRT.Application
    Dim crxRpt As CRAXDDRT.Report
    Set crxApp = New CRAXDDRT.Application
    
    If optIncrLetter = True Then
       Set crxRpt = crxApp.OpenReport(App.Path & "\Incerment_Letter.rpt")
    ElseIf OptMidterm = True Then
        Set crxRpt = crxApp.OpenReport(App.Path & "\Mid_Term_Letters.rpt")
    End If
    
    crxRpt.Database.Tables(1).Location = txtMainFile
    
 
  
    
    To View the report
    Form3.CRViewer1.ReportSource = crxRpt
    
    Form3.CRViewer1.ViewReport
    Form3.CRViewer1.EnableExportButton = True
    Form3.CRViewer1.EnableGroupTree = False
    Form3.CRViewer1.EnableZoomControl = True
    Form3.CRViewer1.EnableCloseButton = False
    Form3.CRViewer1.EnableSearchControl = True
    Form3.CRViewer1.EnableSelectExpertButton = True
    
    
    Form3.Show
    Form3.CRViewer1.Width = Form3.Width
    Form3.CRViewer1.Height = Form3.Height

Open in new window

0
Comment
Question by:mohitvashistha
[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
  • 2
3 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 22758441
How about passing the name in as a parameter?

mlmcc
0
 
LVL 1

Author Comment

by:mohitvashistha
ID: 22764408
can you elobrate more with the code of passing the parameter in Crystal XI

but at design time it ask for list of values but i dont want it to hard code it as my form take list of director from the table (directors which are active) so they will change feom time 2 time.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 750 total points
ID: 22770273
Here is the basic line of code

crRpt.ParameterFields(1).AddCurrentValue "YourValue"

mlmcc
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

770 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