Yes I was going to query the list of installed printers using the Windows API EnumPrinters and then parse each one for the string 'PDF' since I figured it has to be in its name somewhere. Then if the user selected they want to print to PDF but their default printer is something else, I'd warn them that they need to change their printer setting (or do it for them if ok'd) before they can print. Win32-EnumPrinters version 0.01 ===== The README is used to introduce the module and provide instructions on how to install the module, any machine dependencies it may have (for example C compilers and installed libraries) and any other information that should be provided before the module is installed.
HI Jim,
Thanks for your help. The Printer_INFO_2 List as following:
Type PRINTER_INFO_2
pServerName As String
pPrinterName As String
pShareName As String
pPortName As String
pDriverName As String
pComment As String
pLocation As String
pDevMode As DEVMODE
pSepFile As String
pPrintProcessor As String
pDatatype As String
pParameters As String
pSecurityDescriptor As SECURITY_DESCRIPTOR
Attributes As Long
Priority As Long
DefaultPriority As Long
StartTime As Long
UntilTime As Long
Status As Long <
cJobs As Long
AveragePPM
As Long
End Type
pServerName As String
pPrinterName As String
pShareName As String
pPortName As String
pDriverName As String
pComment As String
pLocation As String
pDevMode As DEVMODE
pSepFile As String
pPrintProcessor As String
pDatatype As String
pParameters As String
pSecurityDescriptor As SECURITY_DESCRIPTOR
Attributes As Long
Priority As Long
DefaultPriority As Long
StartTime As Long
UntilTime As Long
Status As Long <
cJobs As Long
AveragePPM
As Long
End Type
I try to get the Status from PRINTER_INFO_2 as following:
.
.
.
offsetStatus equate(72) !offset to printer status in Printer_info_2
.
.
PrinterStatus long
.
.
.
offsetStatus equate(72) !offset to printer status in Printer_info_2
.
.
PrinterStatus long
CODE
.
.
startaddress=(i#-1)* szPrinterInfo2 + lpinfo + offsetStatus
!address of Status
memcpy(address(printerStatus),startaddress,4) !copy the Status
.
.
.
startaddress=(i#-1)* szPrinterInfo2 + lpinfo + offsetStatus
!address of Status
memcpy(address(printerStatus),startaddress,4) !copy the Status
.
.
THE RESULT of printerStatus always : 0
Can you give me some help over here?
Thanks again
Alfred
>> Did someone write this function in Clarion 5.5 to get a status from a
>> local or network printers?
>I put a demo of the function on icetips in prtjob.zip
>Jim Kane - TeamTopSpeed
>Productive Software Solutions
>Can't Find that Message?
>Get Organized, Get ForKeeps!
>www.fkeeps.com
>Jim Kane - TeamTopSpeed
>Productive Software Solutions
>Can't Find that Message?
>Get Organized, Get ForKeeps!
>www.fkeeps.com
Printers Printers Printers!!
Hi All, I have two Printers installed on win2k with default set. However, I another user logs in, default changes......can I force the default printer set?? I'm also using DLU - Volitile and Zen 4. Can I force the default for that particular room each time? Examples would be of great assistance...;-) Many thanks. Using NWadmin, do a properties on the user, group, or container, and go to the NDPS Remote printer button, highlight the printer then click set as default. ...
List of lists (listing of)
Ted In the great List 'o lists., is there something which is along the lines of 'Personal organisers' ? I have googled and found others - just wondering about the lists and couldn't see anything in there I have a intense, executive type who's after something along the lines of Lotus' personal organiser. Don't know why she wants to change from it when I know she already has it installed. Anybody else got suggestions for a good one? (and dont't ask what I mean by good - it's not for me - perhaps I mean effective) In grc.techtalk, Baz...
superreview cancelled: [Bug 257381] [ps] Refactor printer list logic for the postscript module : [Attachment 157364] Add a printer list API
Kenneth Herron <[email protected]> has cancelled Kenneth Herron <[email protected]>'s request for superreview: Bug 257381: [ps] Refactor printer list logic for the postscript module http://bugzilla.mozilla.org/show_bug.cgi?id=257381 Attachment 157364: Add a printer list API http://bugzilla.mozilla.org/attachment.cgi?id=157364&action=edit ------- Additional Comments from Kenneth Herron <[email protected]> Oops, forget this patch. The print-to-pipe print job class assumes every printer name starts with 'PostScript/'...
superreview requested: [Bug 257381] [ps] Refactor printer list logic for the postscript module : [Attachment 157364] Add a printer list API
Kenneth Herron <[email protected]> has asked Michael Kaply (IBM) <[email protected]> for superreview: Bug 257381: [ps] Refactor printer list logic for the postscript module http://bugzilla.mozilla.org/show_bug.cgi?id=257381 Attachment 157364: Add a printer list API http://bugzilla.mozilla.org/attachment.cgi?id=157364&action=edit ...
printers disappear from available printer list?
Netware 6.5, SP2. iPrint clients 4.05 keep losing their printers (WinXP Pro with all the latest patches, sp's etc.). Have to keep going back to iPrint every day and reinstalling! All printers open to group everyone. Only 1 broker, only 1 print manager. HP2100TN with latest firmware, drivers. Any ideas much appreciated! Zak Zak, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has your problem been resolved? If not, you might try one of the following options: - Do a sea...
list of printers
Hi, Does anyone know how I can get the list of printer names for the system to use in a statement like ldw_Print.Modify('DataWindow.Printer = '+ls_Printer) Any help appreciated Tia Aryeh Unless has been changed from previous versions you can't use modify('datawindow.printer'). it only works with describe. In Sybase site there is an example to change the default printer, or try www.digitalw.com that sells library that lets you manage printers. Raymond Usher Ingenieros de Sistemas Asociados, S.A. Aryeh Levin wrote: > Hi, >...
Printer not on List
I have been trying to add a new network printer to iPrint (SBS 6.5). However, when I try to add the driver to the print broker from my Windows XP workstation, the print driver is not on the list of 'system' drivers. It is, however, available to Windows. Furthermore, the installation disk did not come with an 'inf' file, so I cannot load it from there (it installs from an installation program). I feel like I am missing something here. Any suggestions would be appreciated. Thanks. go to the manufacturer web site and dowload the driver to your workstatio...
Lists of Lists?
I've lost my bookmark for Lists of Lists and Google is helping me find it. Daze N. Knights wrote: > I've lost my bookmark for Lists of Lists and Google is helping me find it. Is that a request to bail out Google for you? ;-) http://lists.gpick.com/ On Thu, 23 Dec 2004 01:38:49 -0500, Lisa <[email protected]> wrote: >Daze N. Knights wrote: >> I've lost my bookmark for Lists of Lists and Google is helping me find it. > >Is that a request to bail out Google for you? ;-) > >http://lists.gpick.com/ Just did a Google search for it. ...
Printer list
How can I get the printer list from a PB component ? I expext that I have to use a NT api method but I don't know which one. This component is running on Jaguar. So, the method printdlg is not acceptable Thanks in advance, Christophe I'd recommend you look into PowerPrinter, a $35 utility DLL from http://www.digitalw.com that wraps most printer API functions in a PB-friendly way. -- pbm_hopethishelps, Roy Kiesler [TeamSybase] Sybase Developers Network (SDN) - http:///www.sybase.com/sdn 'Christophe Lombart' <[email protected]> wrote in message ...
Printer is a Printer
Is there a way to determine if a printer is really a printer and not a fax or pdf writer/creator? Our application requires that once a button is press, we print a form and the client signs it. We display a dialog allowing you to pick a printer, but the printer list contains, 'non-printers'. And we do not want to show them. I realize that this may not be possible, but I have to ask. Thanks Edwin, > Is there a way to determine if a printer is really a printer and not a fax or pdf writer/creator? > > Our application requires that once a button is press, we prin...
Where is List of Lists?
My link no longer works. I forgot to bookmark new web page to List of Lists. Joe K writes: > Next time be quicker!!! with reply. Thanks If I had been much quicker, I'd have posted the answer before you posted the question. ;-) Joe K writes: > My link no longer works. I forgot to bookmark new web page to List of Lists. http://lists.thedatalist.com/ Dennis Henderson wrote: > Joe K writes: > >>My link no longer works. I forgot to bookmark new web page to List of Lists. > > > http://lists.thedatalist.com/ Next time be quicker!!! with reply...
lists of lists (down?)
http://lists.gpick.com/ Hi is this page working ok for you if not is tere a similar page or mirror available? thanks mike Wandering aimlessly around grc.shieldsup, I heard mike ridew.. mention: > http://lists.gpick.com/ > Hi is this page working ok for you > if not is tere a similar page or mirror available? LoL is temporarily based at: http://webpages.charter.net/dstockbridge/ Should be back to normal in about a week... -- Don thank you Don 'Don Voorhees' <[email protected]> wrote in message news:[email protected]... > W...
Printer in PowerBuilder
Does anyone know this? If I go to PowerBuilder and set up the printer from the FilePrinterSetup Menu, Where this information is stored? In registry or Pb.ini file or where? ThankS! I am pretty sure it is only kept in memory. It is lost once pb closes. -- Dawn T Brown Eyes (TeamSybase) Rajdeep Bhaduri <[email protected]> wrote in article <[email protected]>... > Does anyone know this? > > If I go to PowerBuilder and set up the printer from the FilePrinterSetup > Menu, Where this information is stored? > >...
List of all printers
Hello, I have this requirement: - I need the list of all printers available on the local machine and on the network - I need to change the default printer to one of the available ones - I need to change the default setting back to the original printer - I need to have a solution that works for Win9x, WinNT (and Win2000). I have checked out EnumPrinters on the net but most of the examples are in VB. I have not been able to successfully translate these to PB. Can someone help? Thomas Hi, Don't try to translate it, simply build an OCX/DLL on VB with the codes you found...
Hi All, I have two Printers installed on win2k with default set. However, I another user logs in, default changes......can I force the default printer set?? I'm also using DLU - Volitile and Zen 4. Can I force the default for that particular room each time? Examples would be of great assistance...;-) Many thanks. Using NWadmin, do a properties on the user, group, or container, and go to the NDPS Remote printer button, highlight the printer then click set as default. ...
List of lists (listing of)
Ted In the great List 'o lists., is there something which is along the lines of 'Personal organisers' ? I have googled and found others - just wondering about the lists and couldn't see anything in there I have a intense, executive type who's after something along the lines of Lotus' personal organiser. Don't know why she wants to change from it when I know she already has it installed. Anybody else got suggestions for a good one? (and dont't ask what I mean by good - it's not for me - perhaps I mean effective) In grc.techtalk, Baz...
superreview cancelled: [Bug 257381] [ps] Refactor printer list logic for the postscript module : [Attachment 157364] Add a printer list API
Kenneth Herron <[email protected]> has cancelled Kenneth Herron <[email protected]>'s request for superreview: Bug 257381: [ps] Refactor printer list logic for the postscript module http://bugzilla.mozilla.org/show_bug.cgi?id=257381 Attachment 157364: Add a printer list API http://bugzilla.mozilla.org/attachment.cgi?id=157364&action=edit ------- Additional Comments from Kenneth Herron <[email protected]> Oops, forget this patch. The print-to-pipe print job class assumes every printer name starts with 'PostScript/'...
superreview requested: [Bug 257381] [ps] Refactor printer list logic for the postscript module : [Attachment 157364] Add a printer list API
Kenneth Herron <[email protected]> has asked Michael Kaply (IBM) <[email protected]> for superreview: Bug 257381: [ps] Refactor printer list logic for the postscript module http://bugzilla.mozilla.org/show_bug.cgi?id=257381 Attachment 157364: Add a printer list API http://bugzilla.mozilla.org/attachment.cgi?id=157364&action=edit ...
printers disappear from available printer list?
Netware 6.5, SP2. iPrint clients 4.05 keep losing their printers (WinXP Pro with all the latest patches, sp's etc.). Have to keep going back to iPrint every day and reinstalling! All printers open to group everyone. Only 1 broker, only 1 print manager. HP2100TN with latest firmware, drivers. Any ideas much appreciated! Zak Zak, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has your problem been resolved? If not, you might try one of the following options: - Do a sea...
list of printers
Hi, Does anyone know how I can get the list of printer names for the system to use in a statement like ldw_Print.Modify('DataWindow.Printer = '+ls_Printer) Any help appreciated Tia Aryeh Unless has been changed from previous versions you can't use modify('datawindow.printer'). it only works with describe. In Sybase site there is an example to change the default printer, or try www.digitalw.com that sells library that lets you manage printers. Raymond Usher Ingenieros de Sistemas Asociados, S.A. Aryeh Levin wrote: > Hi, >...
Printer not on List
I have been trying to add a new network printer to iPrint (SBS 6.5). However, when I try to add the driver to the print broker from my Windows XP workstation, the print driver is not on the list of 'system' drivers. It is, however, available to Windows. Furthermore, the installation disk did not come with an 'inf' file, so I cannot load it from there (it installs from an installation program). I feel like I am missing something here. Any suggestions would be appreciated. Thanks. go to the manufacturer web site and dowload the driver to your workstatio...
Lists of Lists?
I've lost my bookmark for Lists of Lists and Google is helping me find it. Daze N. Knights wrote: > I've lost my bookmark for Lists of Lists and Google is helping me find it. Is that a request to bail out Google for you? ;-) http://lists.gpick.com/ On Thu, 23 Dec 2004 01:38:49 -0500, Lisa <[email protected]> wrote: >Daze N. Knights wrote: >> I've lost my bookmark for Lists of Lists and Google is helping me find it. > >Is that a request to bail out Google for you? ;-) > >http://lists.gpick.com/ Just did a Google search for it. ...
Printer list
How can I get the printer list from a PB component ? I expext that I have to use a NT api method but I don't know which one. This component is running on Jaguar. So, the method printdlg is not acceptable Thanks in advance, Christophe I'd recommend you look into PowerPrinter, a $35 utility DLL from http://www.digitalw.com that wraps most printer API functions in a PB-friendly way. -- pbm_hopethishelps, Roy Kiesler [TeamSybase] Sybase Developers Network (SDN) - http:///www.sybase.com/sdn 'Christophe Lombart' <[email protected]> wrote in message ...
Printer is a Printer
Is there a way to determine if a printer is really a printer and not a fax or pdf writer/creator? Our application requires that once a button is press, we print a form and the client signs it. We display a dialog allowing you to pick a printer, but the printer list contains, 'non-printers'. And we do not want to show them. I realize that this may not be possible, but I have to ask. Thanks Edwin, > Is there a way to determine if a printer is really a printer and not a fax or pdf writer/creator? > > Our application requires that once a button is press, we prin...
Where is List of Lists?
My link no longer works. I forgot to bookmark new web page to List of Lists. Joe K writes: > Next time be quicker!!! with reply. Thanks If I had been much quicker, I'd have posted the answer before you posted the question. ;-) Joe K writes: > My link no longer works. I forgot to bookmark new web page to List of Lists. http://lists.thedatalist.com/ Dennis Henderson wrote: > Joe K writes: > >>My link no longer works. I forgot to bookmark new web page to List of Lists. > > > http://lists.thedatalist.com/ Next time be quicker!!! with reply...
lists of lists (down?)
http://lists.gpick.com/ Hi is this page working ok for you if not is tere a similar page or mirror available? thanks mike Wandering aimlessly around grc.shieldsup, I heard mike ridew.. mention: > http://lists.gpick.com/ > Hi is this page working ok for you > if not is tere a similar page or mirror available? LoL is temporarily based at: http://webpages.charter.net/dstockbridge/ Should be back to normal in about a week... -- Don thank you Don 'Don Voorhees' <[email protected]> wrote in message news:[email protected]... > W...
Printer in PowerBuilder
Does anyone know this? If I go to PowerBuilder and set up the printer from the FilePrinterSetup Menu, Where this information is stored? In registry or Pb.ini file or where? ThankS! I am pretty sure it is only kept in memory. It is lost once pb closes. -- Dawn T Brown Eyes (TeamSybase) Rajdeep Bhaduri <[email protected]> wrote in article <[email protected]>... > Does anyone know this? > > If I go to PowerBuilder and set up the printer from the FilePrinterSetup > Menu, Where this information is stored? > >...
List of all printers
Hello, I have this requirement: - I need the list of all printers available on the local machine and on the network - I need to change the default printer to one of the available ones - I need to change the default setting back to the original printer - I need to have a solution that works for Win9x, WinNT (and Win2000). I have checked out EnumPrinters on the net but most of the examples are in VB. I have not been able to successfully translate these to PB. Can someone help? Thomas Hi, Don't try to translate it, simply build an OCX/DLL on VB with the codes you found...