1,105,232 Community Members

need help how to send data to printer

Member Avatar
jemz
Practically a Posting Shark
849 posts since Jan 2010
Reputation Points: -1 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hello please help me how to print my data that sends to the printer hoping for your positive responds....

Member Avatar
abu taher
Practically a Posting Shark
859 posts since Jul 2008
Reputation Points: 4 [?]
Q&As Helped to Solve: 78 [?]
Skill Endorsements: 0 [?]
 
0
 

this is simple code to print directly.

Printer.Print Text1.Text

it print, what u write in text1.text.

Member Avatar
vb5prgrmr
Posting Virtuoso
1,670 posts since Mar 2009
Reputation Points: 143 [?]
Q&As Helped to Solve: 299 [?]
Skill Endorsements: 3 [?]
 
0
 

Don't forget the...

Printer.EndDoc

Good Luck

Member Avatar
jemz
Practically a Posting Shark
849 posts since Jan 2010
Reputation Points: -1 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

hello thanks for the reply..ahm kindly please give me some example on this im confuse...can i print my data display on the flexgrid then send to the printer?...hoping for your positive responds.

Member Avatar
vb5prgrmr
Posting Virtuoso
1,670 posts since Mar 2009
Reputation Points: 143 [?]
Q&As Helped to Solve: 299 [?]
Skill Endorsements: 3 [?]
 
0
 

Well, you could do a couple of things...

If you want to keep the graphical look of the grid and the form then it is time to search with your friends (yahoo, google, ask, answers, bing) for vb6 screenshot, vb6 printing screenshot.

However, if you just want to print directly to the printer without all the graphics showing up on the paper and thus using up more ink/toner, then you can use the printer.print method after you loop through the grid while building your string that you are going to print. Then after the .print method, you would want to use the .EndDoc method...

Good Luck

Member Avatar
QVeen72
Veteran Poster
1,016 posts since Nov 2006
Reputation Points: 104 [?]
Q&As Helped to Solve: 164 [?]
Skill Endorsements: 7 [?]
 
0
 

Hi,
There is another ongoing thread on Direct printing.. You can check there..
http://www.daniweb.com/forums/thread255432.html

Loop thru FlexGrid's Rows build a String and dump the string to printer..

Regards
Veena

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article