Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: How to pass values to Unbound Fields? Post Reply Post New Topic
Author Message
Trishanku
Newbie
Newbie


Joined: 13 Jan 2009
Location: India
Online Status: Offline
Posts: 2
Quote Trishanku Replybullet Topic: How to pass values to Unbound Fields?
    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 :-(

IP IP Logged
rjoiner
Newbie
Newbie


Joined: 12 Feb 2009
Online Status: Offline
Posts: 2
Quote rjoiner Replybullet 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

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.