Click here to Skip to main content
15,894,180 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionObject reference not set to an instance of an object. Pin
ChiSmile26-Jul-09 8:28
ChiSmile26-Jul-09 8:28 
AnswerRe: Object reference not set to an instance of an object. Pin
Adam Maras26-Jul-09 8:53
Adam Maras26-Jul-09 8:53 
AnswerRe: Object reference not set to an instance of an object. Pin
Pete O'Hanlon26-Jul-09 9:09
mvePete O'Hanlon26-Jul-09 9:09 
GeneralRe: Object reference not set to an instance of an object. Pin
ChiSmile26-Jul-09 9:16
ChiSmile26-Jul-09 9:16 
GeneralRe: Object reference not set to an instance of an object. Pin
Pete O'Hanlon26-Jul-09 10:13
mvePete O'Hanlon26-Jul-09 10:13 
QuestionAutoGenerateColumns being overwritten by Visual Studio IDE Pin
Kevin Geary25-Jul-09 9:54
Kevin Geary25-Jul-09 9:54 
AnswerRe: AutoGenerateColumns being overwritten by Visual Studio IDE Pin
Henry Minute26-Jul-09 9:51
Henry Minute26-Jul-09 9:51 
QuestionWhy does Crystal take so long to set datasource only the first time Pin
Hypermommy25-Jul-09 2:30
Hypermommy25-Jul-09 2:30 
Hi all,

I'm trying to track down why my report takes so long to load the first time but subsequent loads are quite quick. I'm setting the datasource of the report to a dataset, but that's done every time. However, in stepping through the code, I've found that the first time I run this segment of code, it takes a few seconds for the data source to get set. But on subsequent runs it takes no longer than any other command. Any ideas? I've posted the relevant part of the code below.


If ds.Tables(0).Rows.Count > 0 Then
  AddImageColumn(ds.Tables(0), "ClientPic")
  Dim myFilename As String
  myFilename = myG.AppLocation & "\" & myDB.DoExecScalarQuery("select picture from personal")
  If File.Exists(myG.AppLocation & "\ClientDocs\" & myG.Patient & "_clientimage.jpg") Then
    If File.Exists(myFilename) Then
      LoadImage(ds.Tables(0).Rows(0), "ClientPic", myFilename)
    End If
    ds.WriteXml(applocation & "\personal.xml")
    ds.WriteXmlSchema(myG.AppLocation & "\personal.xsd")
    'Dim rptPersonal As New crptPersonalInfo            ' now declared in main
    rptPersonal.SetDataSource(ds)                       ' THIS IS THE LINE THAT'S SLOW THE FIRST TIME
    ' Dim rptPersonalViewer As New frmReportViewer      ' now declared in main
    rptPersonalViewer.cr.ReportSource = rptPersonal
    rptPersonalViewer.ShowDialog()
  Else
    MsgBox("Please check your personal information.  It appears some of it may be missing.",
      MsgBoxStyle.OkOnly, "No Data For Report")
  End If

  Catch ex As Exception
    Dim myE As New EventLogging.EventLogging
    myE.StoreEvent("frmRptParams.RunReport", "Error running report", ex.Message & vbCrLf & vbCrLf & "SQL was: " & strPersonalInfo)
    myE = Nothing
    MsgBox("There was a problem gathering data for the Personal Info report.  If the problem persists please contact customer service.", MsgBoxStyle.Exclamation, "Report Not Run")
  Finally
  da = Nothing
  ds = Nothing
End Try


Denise "Hypermommy" Duggan

QuestionActiveElement Pin
majidmadadi24-Jul-09 19:14
majidmadadi24-Jul-09 19:14 
QuestionActiveDirectory Question [SOLVED] Pin
#realJSOP24-Jul-09 2:48
mve#realJSOP24-Jul-09 2:48 
Questiondetailsview edit Pin
rim jhim23-Jul-09 20:44
rim jhim23-Jul-09 20:44 
AnswerRe: detailsview edit Pin
Suvabrata Roy19-Mar-13 23:54
professionalSuvabrata Roy19-Mar-13 23:54 
QuestionHow would one go about doing this? (Code Coverage) Pin
gantww23-Jul-09 15:15
gantww23-Jul-09 15:15 
AnswerRe: How would one go about doing this? (Code Coverage) Pin
Jimmanuel23-Jul-09 17:43
Jimmanuel23-Jul-09 17:43 
AnswerRe: How would one go about doing this? (Code Coverage) Pin
Curtis Schlak.23-Jul-09 18:10
Curtis Schlak.23-Jul-09 18:10 
AnswerRe: How would one go about doing this? (Code Coverage) Pin
S. Senthil Kumar24-Jul-09 5:35
S. Senthil Kumar24-Jul-09 5:35 
QuestionOnDeserialized/OnDeserializing not firing Pin
RichardM123-Jul-09 5:59
RichardM123-Jul-09 5:59 
AnswerRe: OnDeserialized/OnDeserializing not firing Pin
Vova Gaevoy15-Jul-10 4:33
Vova Gaevoy15-Jul-10 4:33 
QuestionSCSF Smart Client application takes time to load Pin
Sakshi Smriti23-Jul-09 2:02
Sakshi Smriti23-Jul-09 2:02 
AnswerRe: SCSF Smart Client application takes time to load Pin
Ian McCaul23-Jul-09 8:23
Ian McCaul23-Jul-09 8:23 
QuestionRelated value in Datagridviewcolumn Pin
Sergiev23-Jul-09 1:37
Sergiev23-Jul-09 1:37 
AnswerRe: Related value in Datagridviewcolumn Pin
amit k mistry23-Jul-09 6:53
amit k mistry23-Jul-09 6:53 
GeneralRe: Related value in Datagridviewcolumn Pin
Sergiev23-Jul-09 10:04
Sergiev23-Jul-09 10:04 
GeneralRe: Related value in Datagridviewcolumn Pin
Infarkt25-Jul-09 15:29
Infarkt25-Jul-09 15:29 
QuestionOleDbParameter and "IS NOT NULL" Pin
:o:k:23-Jul-09 0:32
:o:k:23-Jul-09 0:32 

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.