#106 Using TidyATL.DLL in vs2003

closed
5
2007-09-29
2006-10-05
Anonymous
No

Hello

I have been using the TidyATL.DLL file in a vb.net
vs2003 project for a few days. Suddenly today when I
call the ParseString function, I receive an error
message "Object Reference not set".

Any insight would be most helpful.
I have unregistered the DLL, deleted the file. Copied
it from the zip and registered with the same result.
I removed the reference from my project and then
added it back .. same result.

It worked fine yesterday. I changed the code from
sending the actual update query to using a stored
procedure, that is it.

If I hover over TidyDOC in the code while it runs it
says {tidy.documentclass}

Thank you, Jon (jd31068@hotmail.com)

Here is the code:

Dim TidyDOC As Tidy.Document

Do While rdrGetDictations.Read

ListBox1.Items.Add(Now & " - processing
dictation id :" & rdrGetDictations
("patientdictationid"))
Application.DoEvents()

DictText = rdrGetDictations("transcript")

TidyDOC = New Tidy.Document

TidyDOC.SetOptBool
(TidyATL.TidyOptionId.TidyWord2000, 1)
TidyDOC.SetOptBool
(TidyOptionId.TidyHtmlOut, 1)
TidyDOC.ParseString(DictText) <-- this
line generates the error

eCode = TidyDOC.CleanAndRepair

TidyDOC.SetOptBool
(TidyOptionId.TidyForceOutput, 1)

newTranscript = TidyDOC.SaveString
newTranscript = newTranscript.Replace
("'", "''")
newTranscript = newTranscript.Replace(Chr
(34), "''")

Try
cmdWriteDictation = New SqlCommand
("spUpdateDictation", cn1)
cmdWriteDictation.CommandType =
CommandType.StoredProcedure
cmdWriteDictation.Parameters.Add
("@Dictation", newTranscript)
cmdWriteDictation.Parameters.Add
("@DictationID", rdrGetDictations
("patientdictationid"))

intResult =
cmdWriteDictation.ExecuteNonQuery
cmdWriteDictation.Dispose()
Catch ex As Exception
MsgBox("error while processing : " &
ex.Message)
Exit Do
End Try

TidyDOC = Nothing

Loop

Discussion

  • Björn Höhrmann

    Logged In: YES
    user_id=188003
    Originator: NO

    TidyATL is not maintained as part of the HTML Tidy project. I am not sure who maintains it, sorry.

     
  • Björn Höhrmann

    • assigned_to: nobody --> hoehrmann
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.