Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Printing(An actual printer) files or text
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
aldreneo




PostPosted: Tue Jun 20, 2006 9:49 am   Post subject: Printing(An actual printer) files or text

Is there a better way to print files or text other than
code:

Sys.Exec ("NOTEPAD.EXE /p file.txt")
Sponsor
Sponsor
Sponsor
sponsor
Hack.saw




PostPosted: Tue Jun 20, 2006 10:05 am   Post subject: (No subject)

Whats wrong with that way?
aldreneo




PostPosted: Tue Jun 20, 2006 10:10 am   Post subject: (No subject)

What if the user does not have notepad?
When you are installing Windows you can disable it

Also then it pops up with notepad for a second

Also if there is an error its a notepad error

I want to know if turing can print
Delos




PostPosted: Tue Jun 20, 2006 10:15 am   Post subject: (No subject)

Pure text? Yes. I don't recall the syntax exactly, but this tut will give you the details. This one is a little different, but gets you to the same place.
Really, [Turing Tutorials] has a lot of your questions already answered, if you'd only look - and most are nicely summarized in the [Turing Walkthrough].
aldreneo




PostPosted: Tue Jun 20, 2006 10:39 am   Post subject: (No subject)

Ok, thanks

I will make it get the printer's name out of an ini file
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: