Click here to Skip to main content
15,887,585 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I take information from a child form and show it to a parent form Pin
programmervb.netc++24-Jun-09 21:06
programmervb.netc++24-Jun-09 21:06 
GeneralRe: How can I take information from a child form and show it to a parent form Pin
waner michaud25-Jun-09 2:33
waner michaud25-Jun-09 2:33 
GeneralRe: How can I take information from a child form and show it to a parent form Pin
programmervb.netc++25-Jun-09 5:49
programmervb.netc++25-Jun-09 5:49 
GeneralRe: How can I take information from a child form and show it to a parent form Pin
waner michaud25-Jun-09 6:18
waner michaud25-Jun-09 6:18 
QuestionSMO Create and verify Indexes Pin
ghost80719-Jun-09 9:46
ghost80719-Jun-09 9:46 
QuestionRe: SMO Create and verify Indexes Pin
ghost80722-Jun-09 2:56
ghost80722-Jun-09 2:56 
Questionin crystal report i want to assign datase to sub report Pin
Ashish Dudhatra19-Jun-09 7:13
Ashish Dudhatra19-Jun-09 7:13 
AnswerRe: in crystal report i want to assign datase to sub report [modified] Pin
ghost80719-Jun-09 10:12
ghost80719-Jun-09 10:12 
This will show you how to load logon info for each table and then set the databases in in each report.
I have also included code on how to send parameters to the report.


<pre>Dim rdReport As New ReportDocument
Dim LogInfo As CrystalDecisions.Shared.TableLogOnInfo

rdReport.Load("\\sysdatacenter\Public\Quality_Control\Reporting\" &amp; reportName &amp; ".rpt")
Dim crConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo()
With crConnectionInfo
.ServerName = DataServer.Server
.DatabaseName = DataServer.Database
.UserID = DataServer.UserName
.Password = DataServer.Password
.IntegratedSecurity = DataServer.Security
End With


LogInfo = New CrystalDecisions.Shared.TableLogOnInfo
LogInfo.ConnectionInfo = crConnectionInfo
Dim crTable As Table
For i As Integer = 0 To rdReport.Subreports.Count - 1
For Each crTable In rdReport.Subreports(i).Database.Tables
crTable.ApplyLogOnInfo(LogInfo)
Next crTable
Next
For Each crTable In rdReport.Database.Tables
crTable.ApplyLogOnInfo(LogInfo)
Next

rdReport.Subreports("rptSettings").SetDataSource(dsReport.Tables("tblJobSettings"))
rdReport.SetDataSource(dsReport.Tables("tblSerialNumbers"))


For l As Integer = 0 To rdReport.ParameterFields.Count - 1
Select Case rdReport.ParameterFields(l).Name
Case "Company_Name"
rdReport.SetParameterValue("Company_Name", frmMain.ProgramDefault.CompanyName)
Case "Company_Address1"
rdReport.SetParameterValue("Company_Address1", frmMain.ProgramDefault.CompanyAddress1)
Case "Company_Address2"
rdReport.SetParameterValue("Company_Address2", frmMain.ProgramDefault.CompanyAddress2)
Case "Company_City"
rdReport.SetParameterValue("Company_City", frmMain.ProgramDefault.CompanyCity)
Case "Company_State"
rdReport.SetParameterValue("Company_State", frmMain.ProgramDefault.CompanyState)
Case "Company_Zip"
rdReport.SetParameterValue("Company_Zip", frmMain.ProgramDefault.CompanyZip)
Case "Company_Phone"
rdReport.SetParameterValue("Company_Phone", frmMain.ProgramDefault.CompanyPhone)
Case "Company_Fax"
rdReport.SetParameterValue("Company_Fax", frmMain.ProgramDefault.CompanyFax)
Case "Company_Web"
rdReport.SetParameterValue("Company_Web", frmMain.ProgramDefault.CompanyWeb)
End Select
Next

Me.crViewer.ReportSource = rdReport
Me.Cursor = Cursors.Default



modified on Friday, June 19, 2009 4:48 PM

QuestionHow to know whether propertygrid..SelectedGridItem is having focus or not Pin
VB 8.019-Jun-09 4:50
VB 8.019-Jun-09 4:50 
QuestionTIFF with JPEG Compression Image Format in VB.Net Pin
wkitlam19-Jun-09 4:27
wkitlam19-Jun-09 4:27 
AnswerRe: TIFF with JPEG Compression Image Format in VB.Net Pin
Dave Kreskowiak19-Jun-09 4:30
mveDave Kreskowiak19-Jun-09 4:30 
GeneralRe: TIFF with JPEG Compression Image Format in VB.Net Pin
Jon_Boy19-Jun-09 6:17
Jon_Boy19-Jun-09 6:17 
QuestionHow to create composite key in a table using VB.NET? Pin
sivakumar.mariappan19-Jun-09 1:02
sivakumar.mariappan19-Jun-09 1:02 
AnswerRe: How to create composite key in a table using VB.NET? Pin
Dave Kreskowiak19-Jun-09 1:16
mveDave Kreskowiak19-Jun-09 1:16 
GeneralRe: How to create composite key in a table using VB.NET? Pin
sivakumar.mariappan19-Jun-09 1:37
sivakumar.mariappan19-Jun-09 1:37 
GeneralRe: How to create composite key in a table using VB.NET? Pin
Dave Kreskowiak19-Jun-09 4:28
mveDave Kreskowiak19-Jun-09 4:28 
AnswerRe: How to create composite key in a table using VB.NET? Pin
riced19-Jun-09 5:06
riced19-Jun-09 5:06 
GeneralRe: How to create composite key in a table using VB.NET? Pin
sivakumar.mariappan19-Jun-09 19:42
sivakumar.mariappan19-Jun-09 19:42 
QuestionPrinter Status Pin
specialdreamsin18-Jun-09 23:46
specialdreamsin18-Jun-09 23:46 
AnswerRe: Printer Status Pin
Christian Graus18-Jun-09 23:51
protectorChristian Graus18-Jun-09 23:51 
GeneralRe: Printer Status Pin
Dave Kreskowiak19-Jun-09 1:05
mveDave Kreskowiak19-Jun-09 1:05 
GeneralRe: Printer Status Pin
Nagy Vilmos19-Jun-09 1:08
professionalNagy Vilmos19-Jun-09 1:08 
QuestionRe: Printer Status Pin
nlarson1119-Jun-09 4:19
nlarson1119-Jun-09 4:19 
AnswerRe: Printer Status Pin
Christian Graus19-Jun-09 11:23
protectorChristian Graus19-Jun-09 11:23 
AnswerRe: Printer Status Pin
nlarson1119-Jun-09 3:51
nlarson1119-Jun-09 3:51 

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.