473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

VB codings to take print out

Hi

I want the VB6 codings to take the print out.
So kindly reply me
Jan 11 '07 #1
8 5017
hi everyone,
I want the VB6 code to take the print out of whole form.
So kindly reply me.
Jan 11 '07 #2
hariharanmca
1,977 1GB
Hi

I want the VB6 codings to take the print out.
So kindly reply me

Don't Repeat Questions

Specify properly, I gave solutions on that, just Search it
Ok
Jan 11 '07 #3
Don't Repeat Questions

Specify properly, I gave solutions on that, just Search it
Ok
You have given the codings.I tried that code.But i couldn't connect to the printer.
So i want code with detail.So kindly reply me
Jan 11 '07 #4
hariharanmca
1,977 1GB
You have given the codings.I tried that code.But i couldn't connect to the printer.
So i want code with detail.So kindly reply me
You din not connect printer???

ok

Open App.path & "\NotpadFile.Txt" For Output As #1 ' Open file for output.
Print #1, Print String
Print #1, Print String
Print #1, Print String
Print #1, Print String
Print #1, Print String
Close #1


-Print String - will use what you want to print

If you Open the NotepadFile you can see the printing format

and to print.... (Use the bellow coding)


Open App.path & "\BatFile.bat" For Output As #1 ' Open file for output.
Print #1, "Type " & App.path & "\NotpadFile.Txt" & ">prn" Close #1



OR


Open App.path & "\BatFile.bat" For Output As #1 ' Open file for output.
Print #1, "copy " & App.path & "\NotpadFile.Txt" & " " & PrinterShareName
Close #1


Shell App.path & "\BatFile.bat", vbHide
Jan 11 '07 #5
You din not connect printer???

ok

Open App.path & "\NotpadFile.Txt" For Output As #1 ' Open file for output.
Print #1, Print String
Print #1, Print String
Print #1, Print String
Print #1, Print String
Print #1, Print String
Close #1


-Print String - will use what you want to print

If you Open the NotepadFile you can see the printing format

and to print.... (Use the bellow coding)


Open App.path & "\BatFile.bat" For Output As #1 ' Open file for output.
Print #1, "Type " & App.path & "\NotpadFile.Txt" & ">prn" Close #1



OR


Open App.path & "\BatFile.bat" For Output As #1 ' Open file for output.
Print #1, "copy " & App.path & "\NotpadFile.Txt" & " " & PrinterShareName
Close #1


Shell App.path & "\BatFile.bat", vbHide
Again i have the doubt, Why we have to set the batFile?
Jan 11 '07 #6
hariharanmca
1,977 1GB
Again i have the doubt, Why we have to set the batFile?
to triger the commani in dos mode
Jan 11 '07 #7
Killer42
8,435 Expert 8TB
I want the VB6 code to take the print out of whole form.
Form1.PrintForm
Jan 12 '07 #8
MMcCarthy
14,534 Expert Mod 8TB
Form1.PrintForm
I am merging this thread with your other thread. Please do not double post.

ADMIN
Jan 12 '07 #9

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

Similar topics

1
by: NsonHo | last post by:
May i know the coding for Insert, Update and Delete of MS SQL? Any good websites to search for Codings?
3
by: NsonHo | last post by:
Hi.. can i know what is the .Net Framework coding for Insert, Update, Delete for MS SQL? Any websites to find codings? Please reply asap.. thx...
0
by: wajja | last post by:
I Need to know how to assign passwords to access tables.please show me some SQL sample codings.and what are SQL Access Controls
6
by: sreekandan | last post by:
Hi Now im doing one project to maint the login and logout time of the organization. So I need the VB codings to get the Current time and Date with detail. So kindly reply me anyone.
18
by: sreekandan | last post by:
hi Now im doing one simple project.For that I want to insert the gender of the individuals into the database( i used two checklist one is forMale,another one is for Female).So i want the...
1
by: sreekandan | last post by:
Hi everybody, I have used the following code to retrieve and display the details from the database table. rs3.Open "select * from tbl where empid = '" & Text1.Text & "' AND dat Between #" &...
7
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I'm new to Visual Studio 2005. I'm creating a windows application using Visual Basic. After I added a control to a form and added some codings to the control, I want to rename the control. ...
1
by: jiaudheen | last post by:
hi..i'm jiaudheen. i'm a entry level software employee. i'm new to .net environment. i work on Visual Studio2005. ASP.net as front end. Sql 2000 as back end. C# as code behind. the task is..i have...
2
by: regfire | last post by:
Kindly…. Mention the C codings for this O/p 1. a) Read the file A o/p: aaaaaaaabbbbbbbbb…………..pppppppppppppp b) Read the file B o/p: 11111122222222222……….00000000000111111111 2) The o/p of...
0
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...
0
isladogs
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...
1
isladogs
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...
0
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...
0
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...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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....
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.