Thanks guys for your efforts, I have used a bit of WOF's idea with the WIN32_Printer collection (Network Property) to let me know if it is a network printer and then build the printer desciption...
I will have to go back to the drawing board and check the API. Your idea with the string manipulation wont help in this scenario as the printer could have been called...
Thanks for this dglienna, but this brings us back to the original problem which is that the DeviceName function is returning the network path and not the name as displayed in the control panel.
...
I am sorry if I did not make myself clear. I have a number of printers installed on my PC. Some of these printers are local and some are network printers. All of these printers are...
Does anybody know how to retrive a list of the names of the currently installed printers. This seems simple enough using the printers collection and the...
An alternative, is to have a multi line textbox on the frame filled with spaces corresponding to the number of rows/columns required. Then you can use string manipulation to implant text into the...
either
(a) Temporarily comment out the error handler.
or
(b) In the VB6 environment select options from the tools menu and on the general tab select 'Break On All Errors'...
Looks like the problem is that the database object referred to by 'db' hasn't been opened. The fact it is coming up with error 91 means that db has been defined as a database but either hasn't been...
I am sorry if I have failed to explain the problem clearly, but I need my program to tell the printer which file to print to, my program uses this printer output file to generate the PDF file, so...
GremlinSA: Could you give me some more details, I am not actually directly accessing any printer objects, it is Microsoft Access that is sending the report to the printer driver and the printer...
Dglienna: Sorry but the problem with the multiuser environment is that multiple machines are trying to write to the same file at the same time so a file move operation would not be possible. I...
Dglienna: I need to know if it is possible to change the name of the printer output file from within my VB6 project. Ideally I would use a randomly generated output file name each time as the files...
I eventually gave up on this, but as a pointer I don't think the shell and wait will work because Adobe wasn't terminating after the executing the print command. I think this is only possible...
Thanks Dglienna, found solution, I didn't know that the CausesValidation event applies to the control that receives the focus so this does the job fine. I tried using the LostFocus event but that...