a VB.NET equivalent of this C# code.
What is the VB.Net equivalent of the code (written in C#) below?
This code is supposed to pick up a crystal report in the browser and then dump (convert) it into a pdf file.
private void Button1_Click(object sender, System.EventArgs e)
{
MemoryStream oStream; // using System.IO
oStream = (MemoryStream)
report.ExportToStream(
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer= true;
G Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
}