Results 1 to 20 of 20

Thread: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

  1. #1

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Wink Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    Hi everybody,
    Anybody knew the vb code on auto reverse printing of an ID Card Using the Javelin j430i model?

    Any Help will be greatly appreciated. Tnx
    Last edited by bugz; May 14th, 2010 at 02:00 AM.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    what do you mean by reverse printing?
    mirror image?
    print both sides?
    other?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    print both sides of an ID Card in just one print process. We use a printer that has flip-over capability. Tnx in advance

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    printer.duplex = 2 (or 3 depending which way you want flipped)
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    i tried this one
    printer.duplex=3 but still the error occur. "Duplex Property is read-only"

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    that would appear to be a feature of your printer driver
    i do not get any error with printer.duplex = 3
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  7. #7

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    what printer do u use sir? what are the possible settings for that problem?

  8. #8

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    can u show to me some of your codes on doing that sir?

  9. #9
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    what printer do u use sir? what are the possible settings for that problem?
    hp laserjet with builtin duplex

    check you windows printer driver to make sure the auto duplex is enabled (installed) in device settings
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  10. #10

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    hav u tried Javelin j430i ID Card Printer sir? it has a capability to print the face and the back side of an ID Card in just one printing process. It will automatically reverse the card for the back side printing after the front side.

  11. #11
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    no i have not tried with that printer, i have never even seen one

    have you checked their website, or been in touch with their support personnel?
    i can only say that normal duplex printing works fine using vb6

    you can check if the printer driver uses some other value for duplex, by setting the printer driver default properties, to what you want to use, then read all the properties in a vb6 app
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  12. #12

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    k tanx, i'l check that. I will ask ur help sir if i cant find that. tnx in advance. God bless

  13. #13
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    if you are using printform to print your id you can not automate duplex printing, as printer properties are not used in conjunction with printform

    you need to use printer.print or printer.paintpicture, with printer.newpage to go to reverse side of card
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  14. #14

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    this is my code using printform sir, what should i do w/ this to print all stuffs in my form as my id card design and using duplex?

    Private Sub prints_Click()
    Dim p As Printer, X As Long
    On Error GoTo err
    If MsgBox("Print All ID Cards [Face & Back Side]?", vbYesNo, Me.Caption) = vbYes Then
    Set p = GetDefaultPrinter()
    X = GetPrinterDuplex(p.DeviceName)
    If CBool(X) Then


    With face
    .BorderStyle = 0
    .PrintForm
    .BorderStyle = 5

    End With
    p.Duplex = 3 'vbPRDPVertical
    With back
    .BorderStyle = 0
    .PrintForm
    .BorderStyle = 5
    End With
    p.Duplex = 1
    Else
    MsgBox "The default printer do not support duplex printing, check it please.", vbOKOnly, Me.Caption
    End If
    'End If
    End If
    Exit Sub
    err:
    MsgBox "Error: " & err.Description
    End Sub

  15. #15
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    i am assuming that face and back are 2 forms

    you can try, but i do not know if it will help
    p.newpage
    between face and back, as duplex is one page front and back
    set duplex before printing anything
    you may need to use a setprinterduplex function, that uses APIs
    http://www.vbforums.com/showpost.php...8&postcount=11

    i am not sure that cbool(x) will return false as you have not posted getprinteruplex function

    here is an alternative to print form, from microsoft, gives better control and better quality of print http://support.microsoft.com/default...b;en-us;161299
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  16. #16

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    can you take a look with my whole program sir? I still got a problem. I will send to you my prog if its ok to u. tnx

  17. #17

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    when i print the picture box using paintpicture, it prints the original size and the duplex do not work. the picture box contains other controls like image control, labels and lines. can you take a look my whole program sir?

  18. #18
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    i pm you before, with my email address
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  19. #19

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    I already sent to you my program sir. (jst part of my program). tnx in advance

  20. #20

    Thread Starter
    Member
    Join Date
    May 2010
    Posts
    40

    Re: Auto Reverse ID Card Printing Using Javelin j430i ID Card Printer

    i sent again my prog to you sir with the needed ocx files. tnx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width