Visual Basic Express !!install!! Online

' Optional: Print directly PrintDocument1.DocumentName = "MyPaper" PrintDocument1.Print() End Sub

Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ' Simulate producing a paper Dim title As String = "My Sample Paper" Dim author As String = "Student Name" Dim body As String = "This is the content of the paper. " & "It discusses important topics and concludes with findings." ' Combine into a document Dim paper As String = "Title: " & title & vbCrLf & "Author: " & author & vbCrLf & "Date: " & Date.Now.ToString() & vbCrLf & vbCrLf & body & vbCrLf & vbCrLf & "--- End of Paper ---" visual basic express

' Save to a file My.Computer.FileSystem.WriteAllText("C:\temp\MyPaper.txt", paper, False) ' Optional: Print directly PrintDocument1