|
-
May 13th, 2010, 09:34 PM
#1
Thread Starter
Member
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.
-
May 14th, 2010, 02:56 AM
#2
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
-
May 16th, 2010, 08:30 PM
#3
Thread Starter
Member
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
-
May 17th, 2010, 03:32 AM
#4
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
-
May 17th, 2010, 04:56 AM
#5
Thread Starter
Member
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"
-
May 17th, 2010, 05:37 AM
#6
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
-
May 17th, 2010, 05:41 AM
#7
Thread Starter
Member
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?
-
May 17th, 2010, 05:44 AM
#8
Thread Starter
Member
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?
-
May 17th, 2010, 05:50 AM
#9
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
-
May 17th, 2010, 08:29 PM
#10
Thread Starter
Member
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.
-
May 18th, 2010, 04:20 AM
#11
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
-
May 18th, 2010, 07:38 PM
#12
Thread Starter
Member
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
-
May 18th, 2010, 10:11 PM
#13
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
-
May 19th, 2010, 07:12 AM
#14
Thread Starter
Member
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
-
May 19th, 2010, 04:57 PM
#15
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
-
May 31st, 2010, 03:27 AM
#16
Thread Starter
Member
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
-
Jun 3rd, 2010, 12:30 AM
#17
Thread Starter
Member
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?
-
Jun 3rd, 2010, 03:17 AM
#18
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
-
Jun 22nd, 2010, 07:45 PM
#19
Thread Starter
Member
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
-
Jun 30th, 2010, 08:30 PM
#20
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|