Click here to Skip to main content
15,908,274 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Plz help me in developing win32 application" Pin
Luc Pattyn20-Jun-09 2:12
sitebuilderLuc Pattyn20-Jun-09 2:12 
GeneralRe: Plz help me in developing win32 application" Pin
Christian Graus20-Jun-09 11:31
protectorChristian Graus20-Jun-09 11:31 
GeneralRe: Plz help me in developing win32 application" Pin
Luc Pattyn20-Jun-09 12:07
sitebuilderLuc Pattyn20-Jun-09 12:07 
GeneralRe: Plz help me in developing win32 application" Pin
Christian Graus20-Jun-09 13:06
protectorChristian Graus20-Jun-09 13:06 
QuestionVB.NET - Ms-access - Error - "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done." Pin
sivakumar.mariappan19-Jun-09 20:46
sivakumar.mariappan19-Jun-09 20:46 
AnswerRe: VB.NET - Ms-access - Error - "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done." Pin
Dave Kreskowiak20-Jun-09 10:08
mveDave Kreskowiak20-Jun-09 10:08 
Questionhi everyone need help Pin
harieshkumar.n19-Jun-09 20:08
harieshkumar.n19-Jun-09 20:08 
AnswerRe: hi everyone need help Pin
Christian Graus19-Jun-09 20:10
protectorChristian Graus19-Jun-09 20:10 
GeneralRe: hi everyone need help Pin
harieshkumar.n22-Jun-09 0:40
harieshkumar.n22-Jun-09 0:40 
QuestionHow can I take information from a child form and show it to a parent form Pin
waner michaud19-Jun-09 11:45
waner michaud19-Jun-09 11:45 
AnswerRe: How can I take information from a child form and show it to a parent form Pin
Christian Graus19-Jun-09 12:43
protectorChristian Graus19-Jun-09 12:43 
GeneralRe: How can I take information from a child form and show it to a parent form Pin
waner michaud22-Jun-09 10:37
waner michaud22-Jun-09 10:37 
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 

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.