borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (create auto number in Crystal Report?)Next Topic (Tutorial on VB DataReporting Request) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Print report from .net datagrid
Poster Message
Anita
Level: Big Cheese

Registered: 19-05-2005
Posts: 24

icon Print report from .net datagrid


I have placed a couple of text fields in the details section of a crystal report.  I’m not trying to connect to a database, but just trying to put some text

Into the text object.  It is a web application.


I can run the report in the viewer, but don’t know the code to set the text property of the text object.  I’ve tried this:


oRpt.Sections(3).ReportObjects.Item(“txtLastName”).Text = “Jones”


it does not work.  I'm using VB dot net.  Thanks for your help.



17-01-2006 at 09:36 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Print report from .net datagrid

Try

CType(oRpt.ReportDefinition.ReportObjects(“txtLastName”), CrystalDecisions.CrystalReports.Engine.TextObject).Text = "some text"

____________________________
If you find the answer helpful, please mark this topic as solved.

21-01-2006 at 01:06 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Print report from .net datagrid
Previous Topic (create auto number in Crystal Report?)Next Topic (Tutorial on VB DataReporting Request) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder