I am trying to modify a report (rdlc) at runtime.
I have found several examples, but di not succeed (several hours of trying...)
The attached code snippet shows the sentral part of the problem.
The doc.load(stream) gives an error saying something (translated from Norwegian): "Object null reference...."
I seems like I am not able to locate the rdlc file which is inside the application(?).
I have read something about namespace spesification for the rdlc-file?
But the rdlc file is just a file inside the appilcation?
I am using VS 2005
Private Function JusterGirodelOppNed(ByVal rdlc As String) As IO.TextReader
Dim reader As IO.TextReader
Dim doc As New System.Xml.XmlDocument
Dim stream As IO.Stream
stream = Me.GetType().Assembly.GetManifestResourceStream(rdlc)
Dim node As System.Xml.XmlNode