By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

direct print a textfile

xtianixm
P: 52
how can i print a textfile directly?
Feb 1 '08 #1
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
oh , thats so simple

select File ----> Print from menu.

is not that quiet direct ?
Feb 1 '08 #2

daniel aristidou
100+
P: 491
Ctrl + P,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Feb 1 '08 #3

P: 68
how can i print a textfile directly?
Hi,
I am not clear, what u have said here. Moreover, u can try with this following code:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Dim FileName As String

Private Sub Command1_Click()
ShellExecute hwnd, "print", FileName, "", 0, 1
End Sub

Private Sub Form_Load()
FileName = "C:\shuvo2k6.txt"
End Sub

If u get success, reply me.
Get Better.

Regards,
shuvo2k6
Feb 1 '08 #4

xtianixm
P: 52
wat i mean is when i use filesystemobject to write a text in a text file. after that i want to print it directly rather than reading it and print.

..ill try shovu2k6 code. ill post the result tommorow or onward
Feb 2 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.