Click here to Skip to main content
15,893,588 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: IsUserAdmin (Vista non-elevated) Pin
Luc Pattyn31-Aug-09 2:39
sitebuilderLuc Pattyn31-Aug-09 2:39 
AnswerRe: IsUserAdmin (Vista non-elevated) Pin
AB_dev31-Aug-09 4:09
AB_dev31-Aug-09 4:09 
GeneralQuery For Getting Last Child Note - Sourabh Das Pin
Dot Net Jantu30-Aug-09 22:54
Dot Net Jantu30-Aug-09 22:54 
GeneralRe: Query For Getting Last Child Note - Sourabh Das Pin
Mycroft Holmes30-Aug-09 23:12
professionalMycroft Holmes30-Aug-09 23:12 
QuestionAbout Crystal Report Viewer using Dataset Pin
drexler_kk30-Aug-09 21:31
drexler_kk30-Aug-09 21:31 
AnswerRe: About Crystal Report Viewer using Dataset Pin
Mycroft Holmes30-Aug-09 22:53
professionalMycroft Holmes30-Aug-09 22:53 
QuestionRe: About Crystal Report Viewer using Dataset Pin
drexler_kk30-Aug-09 23:25
drexler_kk30-Aug-09 23:25 
AnswerCrystal Report using Dataset Pin
David Mujica31-Aug-09 3:20
David Mujica31-Aug-09 3:20 
This is what I have done in the past ...

Since you already have the data in a dataset, you need to create a schema file for Crystal so that you can design the report.

1) Place this in your code somewhere after the datatable is defined.
mydatatable.writeXMLSchema("C:\TEMP\mytable.xsd")

You will only need this once, or you will need it again if you change the structure of your datatable.

2) from your solution explorer, Add New Item, "Crystal Report"
3) Select, "Use report wizard" to create the report
4) choose "Create New Connection\Database Files" as the data source
5) Select the "c:\temp\mytable.xsd" file
6) choose the "table" to add to your list of selected tables. Click Next
7) Select the fields from the table to include in your report
8) follow the rest of the prompts through the wizard, "grouping","Summaries", "Sorted by", "Chart", "Record Selection", "Styles"

9) This is how I load the reports and attach it to a dataset:

 Protected Sub displayRpt(ByVal sRptName As String, ByVal ds As DataSet, ByVal crParamFields As ParameterFields)
        Dim RptPath As String
        Dim rpt As New ReportDocument


' I store my reports in a folder called, "RptSource", one level down from the main website.

        RptPath = Server.MapPath("~/Rptsource")

        rpt.Load(RptPath + "\" + sRptName)

        rpt.SetDataSource(ds)

' Use the following only if you are passing parameters to the report.  In my example, I am not passing parameters
        'CrystalReportViewer1.ParameterFieldInfo = crParamFields

        CrystalReportViewer1.HyperlinkTarget = "_blank"  ' This causes the report to pop into a new browser.
        CrystalReportViewer1.DisplayGroupTree = False
        CrystalReportViewer1.HasToggleGroupTreeButton = False
        CrystalReportViewer1.HasDrillUpButton = False
        CrystalReportViewer1.HasViewList = False
        CrystalReportViewer1.HasSearchButton = False
        CrystalReportViewer1.EnableDrillDown = False    ' hmmm
        CrystalReportViewer1.Height = 800
        CrystalReportViewer1.Width = 900

        CrystalReportViewer1.ReportSource = rpt
        'CrystalReportViewer1.RefreshReport()
End Sub

AnswerRe: About Crystal Report Viewer using Dataset Pin
εїзεїзεїз31-Aug-09 6:30
εїзεїзεїз31-Aug-09 6:30 
QuestionEditable DataGridViewComboBoxColumn Pin
C#Coudou30-Aug-09 19:37
C#Coudou30-Aug-09 19:37 
AnswerRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз30-Aug-09 21:18
εїзεїзεїз30-Aug-09 21:18 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou30-Aug-09 21:48
C#Coudou30-Aug-09 21:48 
AnswerRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз30-Aug-09 21:20
εїзεїзεїз30-Aug-09 21:20 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou30-Aug-09 21:53
C#Coudou30-Aug-09 21:53 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз30-Aug-09 22:02
εїзεїзεїз30-Aug-09 22:02 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou6-Sep-09 16:05
C#Coudou6-Sep-09 16:05 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз7-Sep-09 5:54
εїзεїзεїз7-Sep-09 5:54 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou8-Sep-09 18:39
C#Coudou8-Sep-09 18:39 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз8-Sep-09 19:12
εїзεїзεїз8-Sep-09 19:12 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou8-Sep-09 20:16
C#Coudou8-Sep-09 20:16 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз8-Sep-09 20:31
εїзεїзεїз8-Sep-09 20:31 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou8-Sep-09 22:18
C#Coudou8-Sep-09 22:18 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз8-Sep-09 22:23
εїзεїзεїз8-Sep-09 22:23 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou9-Sep-09 18:27
C#Coudou9-Sep-09 18:27 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз9-Sep-09 20:17
εїзεїзεїз9-Sep-09 20:17 

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.