Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2006, 05:12
The Day Walker!
 
Posts: n/a
printing in windows with dos speed???

pals...

i m developing an acc soft, 4 my office,,, in vb + accesss and needed 2 know

if there is a way i can print with the dos speed by vb coding....

want 2 use dot matrix printer 4 printing,,,,, and as every1 knows, dos prints

very fast on dotmatrix compared 2 windows,, so is there a way, i can print

with the same speed staying in windows,,, using vb...

help needed

thanx

TDW {RES}
Reply With Quote
  #2  
Old 01-06-2006, 09:09
Maximus Maximus is offline
Friend
 
Join Date: Nov 2005
Posts: 39
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Maximus Reputation: 0
mmh...
Are you handling printer using WinApi? If not, start using them. Also, set its datatype to RAW. And use api like WritePrinter to do the job.
Also, remember you need to find the right escape sequences for your printers. More, if I remember well, the OS will send anyway a bunch of escape commands to the printer, and you cannot avoid it.
Reply With Quote
  #3  
Old 01-06-2006, 10:06
Unforgiv3N's Avatar
Unforgiv3N Unforgiv3N is offline
Friend
 
Join Date: Aug 2005
Posts: 172
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 3 Times in 3 Posts
Unforgiv3N Reputation: 0
many of matrix printers are very slove in winxp, because they use the color driver or high resolution printing you can decrease them manually or monitor them and apply them on a other PC, you can also use CVS Output but you will lose the drawing tables also you can use Seagate's Crystal Report
Reply With Quote
  #4  
Old 01-06-2006, 12:16
The Day Walker!
 
Posts: n/a
@maximus,,,

pal,,, will that help me in speed printing... or will it take the same windows printing time

cause i dont need any hifi printing, just normal text and straight lines.... 2 generate

bills,,thats it..... sop it should b fast.... and will crystal report print b fast..or slow??

thanx

TDw {RES}
Reply With Quote
  #5  
Old 01-06-2006, 14:09
appsuse appsuse is offline
Friend
 
Join Date: Jan 2006
Posts: 14
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
appsuse Reputation: 0
Dos Print

There are many ways to print Dos Speed In windows
1. Use Print function with Draft font to print.
2. Design Reports in Draft font
3. send print to lpt direct. and many more
Reply With Quote
  #6  
Old 01-06-2006, 17:35
infern0 infern0 is offline
Friend
 
Join Date: Dec 2004
Posts: 72
Rept. Given: 4
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 2 Times in 2 Posts
infern0 Reputation: 0
also try to print into generic / text only printer
Reply With Quote
  #7  
Old 01-06-2006, 21:58
Maximus Maximus is offline
Friend
 
Join Date: Nov 2005
Posts: 39
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 1 Time in 1 Post
Maximus Reputation: 0
do you understand Delphi Code? If so, google for ZReport (or ZaReport, forgot which one).
Reply With Quote
  #8  
Old 01-14-2006, 20:27
mpardinho
 
Posts: n/a
Thumbs up

try this code

if you need use chr(27).....CHR(18)

Code:
Public Sub Prinbt_File(Txt$, PrnName$)
   Dim DI As DOC_INFO_1, buffer() As Byte, Written&, hPrn&
   Dim FinalText$, Addline$, Resp&
   Dim Pd As PRINTER_DEFAULTS
      
   DI.pDocName = "Relatório"
   DI.pOutputFile = vbNullString
   DI.pDatatype = "RAW"
   
   With Pd
      .pDatatype = 0&
      .pDevMode = 0&
      .DesiredAccess = PRINTER_ALL_ACCESS
   End With
   
   ' open
   Resp = OpenPrinter(PrnName, hPrn, Pd)
   Resp = StartDocPrinter(hPrn, 1, DI)
   Resp = StartPagePrinter(hPrn)
   
   ' print
   Open Txt For Input As #1
      Do While Not EOF(1)
         Line Input #1, Addline
         buffer = FinalText + vbCrLf
         Call WritePrinter(hPrn, buffer(1), UBound(buffer), Written)
     Loop
   Close #1
   
   ' Finish
   EndPagePrinter (hPrn)
   EndDocPrinter (hPrn)
   ClosePrinter (hPrn)
End Sub
Reply With Quote
  #9  
Old 01-15-2006, 19:47
appsuse appsuse is offline
Friend
 
Join Date: Jan 2006
Posts: 14
Rept. Given: 2
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
appsuse Reputation: 0
hxxp://planet-source-code.com
site has many and more samples on dos printing using visual basic, access and crsytal report.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing tuts at work crkelbery General Discussion 3 03-04-2005 08:49


All times are GMT +8. The time now is 05:05.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )