Type "FileStream" not defined


Sorry, pretty new at this stuff. I get an error Type “FileStream” not defined when building my solution trying the example for writing direct to pdf. I think I need to include something, but not sure how or what??

Thanks for your help on this.

Dim fs As FileStream = New FileStream(“e:/temp/testresult/SingleSeg-d.pdf”,FileMode.Create)

Dim pdf As Pdf = New Pdf(fs)

Dim sec1 As Section = pdf.Sections.Add()

Dim i As Integer

For i = 0 To 1000- 1 Step 1

Dim t As Text = New Text("hello world hello world hello " + i.ToString())






Thank you for considering Aspose.

You should include “System.IO”.