Click here to Skip to main content
16,006,516 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSystem.Drawing.Color->System.UInt32 Pin
El'Cachubrey28-Sep-04 1:10
El'Cachubrey28-Sep-04 1:10 
GeneralRe: System.Drawing.Color->System.UInt32 Pin
Scott McMaster28-Sep-04 15:32
Scott McMaster28-Sep-04 15:32 
GeneralBind Crystal Report with dataset Pin
nitin_ion28-Sep-04 0:54
nitin_ion28-Sep-04 0:54 
GeneralRe: Bind Crystal Report with dataset Pin
Jim Matthews28-Sep-04 3:12
Jim Matthews28-Sep-04 3:12 
the basic steps for doing this are:

1. create new .xsd file to describe your datasource (dataset)
2. create new .rpt (crystal report) template using .xsd file as your datasource. you can actually create the report at run-time, but that's more of a headache than you want to get into unless it's absolutely necessary. (i.e. you don't know that formatting of the report at design-time etc.)
3. create, populate and display your report:
Dim dsMyData as Dataset
Dim crMyReport as ReportDocument

Try

'--- code to populate your dataset here ---'

crMyReport = New ReportDocument
crMyReport.Load("..\Templates\myReport.rpt")
crMyReport.SetDataSource(dsMyData)

me.CrystalReportViewer1.ReportSource = crMyReport

This technique works best with strongly typed dataset, but is feasible with generic datasets as well. sometimes i have problems synchronizing the definition of the dataset with the actual dataset in memory and the report will not show any data. If this happens and i absolutely need to use a generic dataset i usually take care of this by just generating my dataset and serializing the data and schema out to an xml file. Then use this file as the source for my report template.

sorry for any typos, i just wrote this code off the top of my head.

hope this helps,



-jim
GeneralOutlookBar in VB.NET Pin
Jorge Ernesto27-Sep-04 22:26
Jorge Ernesto27-Sep-04 22:26 
GeneralRe: OutlookBar in VB.NET Pin
Dave Kreskowiak28-Sep-04 2:38
mveDave Kreskowiak28-Sep-04 2:38 
GeneralPositioning of ImageBoxes Pin
tommy_tanaka27-Sep-04 21:57
tommy_tanaka27-Sep-04 21:57 
GeneralRe: Positioning of ImageBoxes Pin
Dave Kreskowiak28-Sep-04 3:59
mveDave Kreskowiak28-Sep-04 3:59 
GeneralRe: Positioning of ImageBoxes Pin
tommy_tanaka28-Sep-04 4:18
tommy_tanaka28-Sep-04 4:18 
GeneralRe: Positioning of ImageBoxes Pin
Dave Kreskowiak28-Sep-04 5:38
mveDave Kreskowiak28-Sep-04 5:38 
GeneralRe: Positioning of ImageBoxes Pin
tommy_tanaka29-Sep-04 3:48
tommy_tanaka29-Sep-04 3:48 
GeneralPermissions to a file Pin
njppp27-Sep-04 21:19
njppp27-Sep-04 21:19 
GeneralRe: Permissions to a file Pin
Dave Kreskowiak28-Sep-04 3:34
mveDave Kreskowiak28-Sep-04 3:34 
GeneralWeb Hosting Pin
Desi Bravo27-Sep-04 19:14
Desi Bravo27-Sep-04 19:14 
GeneralCalling base class functions from a derived one Pin
Verolix27-Sep-04 15:51
Verolix27-Sep-04 15:51 
GeneralRe: Calling base class functions from a derived one Pin
Christian Graus27-Sep-04 16:12
protectorChristian Graus27-Sep-04 16:12 
GeneralRe: Calling base class functions from a derived one Pin
Dave Kreskowiak28-Sep-04 3:28
mveDave Kreskowiak28-Sep-04 3:28 
GeneralPlease help me.... Pin
KORCARI27-Sep-04 10:35
KORCARI27-Sep-04 10:35 
GeneralRe: Please help me.... Pin
Colin Angus Mackay27-Sep-04 11:42
Colin Angus Mackay27-Sep-04 11:42 
GeneralRe: Please help me.... Pin
Christian Graus27-Sep-04 12:10
protectorChristian Graus27-Sep-04 12:10 
GeneralRe: Please help me.... Pin
Desi Bravo27-Sep-04 19:41
Desi Bravo27-Sep-04 19:41 
GeneralRe: Please help me.... Pin
Colin Angus Mackay28-Sep-04 4:32
Colin Angus Mackay28-Sep-04 4:32 
QuestionHow to Enable Print option Pin
eshban28427-Sep-04 10:12
eshban28427-Sep-04 10:12 
AnswerRe: How to Enable Print option Pin
McClamm27-Sep-04 11:10
McClamm27-Sep-04 11:10 
AnswerRe: How to Enable Print option Pin
Desi Bravo27-Sep-04 19:31
Desi Bravo27-Sep-04 19:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.