Print Page | Close Window

How to pass values to Unbound Fields?

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=5202
Printed Date: 02 May 2024 at 1:24pm


Topic: How to pass values to Unbound Fields?
Posted By: Trishanku
Subject: How to pass values to Unbound Fields?
Date Posted: 13 Jan 2009 at 10:00am

Hello

I am using VS .NET 2005 with the built-in Crystal Reports to write a Windows Forms / VB.NET based application.

I have designed the report .RPTs using the DataSet available in the design environment. Additionally, I have also inserted some Text Objects and Unbound Fields onto the report.

1. Is there a way I can pass on values to these objects / fields at run-time, through code (no Parameter fields)?

2. Also, how do I populate the Special fields like "Report Title" etc?

Please help! Its a desperate situation for me :-(




Replies:
Posted By: rjoiner
Date Posted: 17 Feb 2009 at 7:57pm

You set it in the ReportDocument.SummaryInfo.ReportTitle, here is a basic snipet.
 
Dim rptDocument As New ReportDocument

rptDocument.Load(strReportPath)

rptDocument.SetDataSource(rptTable)

rptDocument.SummaryInfo.ReportTitle = "The Reports Title"

CrystalReportViewer1.ReportSource = rptDocument




Print Page | Close Window