Click here to Skip to main content
15,911,786 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionColumn Header(Listview) Pin
mandev20052-May-06 1:20
mandev20052-May-06 1:20 
Questiondatagrid in vb 6.0 Pin
pankajgarg122-May-06 0:22
pankajgarg122-May-06 0:22 
QuestionHow to refresh data grid automatically after add client Pin
scarface192-May-06 0:07
scarface192-May-06 0:07 
AnswerRe: How to refresh data grid automatically after add client Pin
| Muhammad Waqas Butt |2-May-06 1:05
professional| Muhammad Waqas Butt |2-May-06 1:05 
QuestionStartup Program Pin
ADY0071-May-06 23:28
ADY0071-May-06 23:28 
AnswerRe: Startup Program Pin
CWIZO1-May-06 23:49
CWIZO1-May-06 23:49 
AnswerRe: Startup Program Pin
Hari Om Prakash Sharma2-May-06 1:30
Hari Om Prakash Sharma2-May-06 1:30 
Questioncrystal reports Pin
skippydog1-May-06 23:19
skippydog1-May-06 23:19 
My VB app uses a form to input the report parameters and call a second form containing the crystal object with the formated report with subreports, this works fine until the report form is closed and the user enters a second set of parameters in the parameter form and calls the report form again, The code that logs the subreports into the database fails stating "Object reference not set to an instance of an object"


For index = 0 To objReport.ReportDefinition.Sections.Count - 1
For intCounter = 0 To _
objReport.ReportDefinition.Sections(index).ReportObjects.Count - 1
With objReport.ReportDefinition.Sections(index)
If .ReportObjects(intCounter).Kind = _
CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
mySubReportObject = CType(.ReportObjects(intCounter), CrystalDecisions.CrystalReports.Engine.SubreportObject)
mySubRepDoc = mySubReportObject.OpenSubreport(mySubReportObject.SubreportName)
For intCounter1 = 0 To mySubRepDoc.Database.Tables.Count - 1
mySubRepDoc.Database.Tables(intCounter1).ApplyLogOnInfo(ConInfo) 'sp;
mySubRepDoc.Database.Tables(intCounter1).ApplyLogOnInfo(ConInfo)
Next
End If
End With
Next
Next

the code loops thru the sections to find subreports and logs them into the DB but only works on first execution.
Any suggestions?
Questioncustom control question Pin
batmike20001-May-06 22:02
batmike20001-May-06 22:02 
QuestionDLL Hell in VB Pin
D.N.1-May-06 20:19
D.N.1-May-06 20:19 
AnswerRe: DLL Hell in VB Pin
Christian Graus1-May-06 20:58
protectorChristian Graus1-May-06 20:58 
AnswerRe: DLL Hell in VB Pin
Duncan Edwards Jones1-May-06 21:10
professionalDuncan Edwards Jones1-May-06 21:10 
QuestionUnable to add object to database Pin
jackwongcw1-May-06 19:22
jackwongcw1-May-06 19:22 
QuestionCant get images from a webserver thru a proxy socket Pin
Abhishek Tiwari1-May-06 18:59
Abhishek Tiwari1-May-06 18:59 
QuestionPrint to File Pin
furjaw1-May-06 18:52
furjaw1-May-06 18:52 
AnswerRe: Print to File Pin
Duncan Edwards Jones1-May-06 21:15
professionalDuncan Edwards Jones1-May-06 21:15 
GeneralRe: Print to File Pin
furjaw2-May-06 8:34
furjaw2-May-06 8:34 
GeneralRe: Print to File Pin
Duncan Edwards Jones2-May-06 9:48
professionalDuncan Edwards Jones2-May-06 9:48 
GeneralRe: Print to File Pin
furjaw2-May-06 10:10
furjaw2-May-06 10:10 
GeneralRe: Print to File Pin
furjaw3-May-06 19:50
furjaw3-May-06 19:50 
Questionsplit string using vb6 Pin
ihsan_zie1-May-06 17:09
ihsan_zie1-May-06 17:09 
AnswerRe: split string using vb6 Pin
atregent1-May-06 17:51
atregent1-May-06 17:51 
Question'System.Data.DataRowView' does not contain a property with the name LastDate. Pin
kenn_rosie1-May-06 16:48
kenn_rosie1-May-06 16:48 
Questiondeclare and error Pin
ezajan1-May-06 15:11
ezajan1-May-06 15:11 
AnswerRe: declare and error Pin
Christian Graus1-May-06 16:02
protectorChristian Graus1-May-06 16: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.