how can i print a textfile directly?
4 1227
oh , thats so simple
select File ----> Print from menu.
is not that quiet direct ?
Ctrl + P,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
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
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
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Hans A |
last post by:
I have a textfile "textfile.txt" containing a list of words. There is
one word on each line. I want to pick two random lines from this
textfile, and I have tried to do something like:
//Loading...
|
by: Manfred Schwab |
last post by:
Recording messages and print statements in a textfile during program
execution.
Is there a similar command to redirect errormessages or print statements
into a standart asciifile during...
|
by: Larry Rekow |
last post by:
I have a report that's created each day as a flat textfile.
Because I came from the Access world, I created a macro that imports
it with a schema that gives meaningful names to the various...
|
by: Michael Schindler |
last post by:
Ich habe es nun erreicht, ein textfile einzulesen das nun zeile für zeile im
datagrid angezeigt wird.
Nun wäre es toll wenn ich das textfile zum beispiel nach jedem blank in eine
spalte...
|
by: Kevin Johnson |
last post by:
Hi
Using C# and a textfile I need to do two things:
1. Read the contents of the textfile and return the number of words
contained in it.
2. Output a list of unqiue words (i.e. not...
|
by: chris |
last post by:
Hi there,
I am reading in a textfile which looks like this (there is no new line after
the last number)
03 98661881
0407 566453
The code to load the textfile looks like this:
|
by: digitalorganics |
last post by:
What's the difference between initializing class variables within the
class definition directly versus initializing them within the class's
__init__ method? Is there a reason, perhaps in certain...
|
by: kachokaratz |
last post by:
well i have a problem in my project..since the contents of my textfile is too long, i was wondering how to output the textfile in such a way that you can divide the contents to be able to output...
|
by: blumen |
last post by:
Hi all,
I'm a newbie in VB.Net Programming..
Hope that some of you can help me to solve this..
I'm working out to read,parse and save textfile into SQL Server.
The textfile contains thousands...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |