c# - VC# 2010Express print open file -


I am new here and my english is not the best, but i have a question. Is there any possibility in VC # 2010 Express to print the file opened through open file deletion? The open file is visible in the web browser element and it can be edited but now, whenever I try to "start" / debug my application, an error message is displayed. Error Message:

  There is no constructor in "System.IO.StreamReader" that contains 0 arguments.   

This is the line where I need to specify the file path for the file that I want to print.

What do I need to enter in the web browser element to classify brackets?

  system.io.rrrrrrff filetipprint; System.Drawing.Font PrintFont; Private Zero printButton_Click (Object Sender, EventArgs E) {string printPath = System.Environment.GetFolderPath (Environment.SpecialFolder.Desktop); FileToPrint = New System. IO.StreamReader (printPath + @ "\ myFile.txt"); Printfonts = new system Drawing.fonts ("aerial", 10); PrintDocument1.Print (); FileToPrint.Close (); }    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -