hi my program is need to print different forms but each forms must use different printer and all printers was connected to my pc via usb port, my problem is if i want to print a form A i will click the command box then it will use the EPSON printer, if form B use CANNON, and in form C it will use BROTHER as its default printer. Can u help me to set the dafault printer before the form will be printed. Thanks.
Dim p As VB.Printer
For Each p In VB.Printers
If p.DeviceName = "EPSON" Then
Set Printer = p
i hope that you can use the above code according to your suitability.one more thing that may help you is that use of commondialog boxe to choose the printer but i think the above code will be more suitable as we need not to select the printer again and agian whenever we want to print.
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...