I am wondering how I can print directly to a printer with a local rdlc report instead of using the report viewer. Basically what I am trying to do is allow the user to push a button and print a report using the record that the user is currently viewing on the screen.

I have tried using the code on the MSDN http://msdn.microsoft.com/en-us/library/ms252091.aspx, but I get an error Variable 'warnings' is passed by reference before it has been assigned a value. A null reference exception could result at runtime. Which is this part of the code:
Dim warnings As Warning()
m_streams = New List(Of Stream)()
report.Render("Image", deviceInfo, AddressOf CreateStream, warnings)
For Each stream As Stream In m_streams
stream.Position = 0

So it won't run. Also the msdn sample code wants an XML file and I only have an xsd.

Can't believe this is so much work just to print the report without viewing it.

Any help you can provide would be much appreciated as I am new to vb.