Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Effected By Windows 2000

Status
Not open for further replies.

ChrisAgius

Programmer
Sep 27, 2000
51
MT
I have a great headache working on a printing form.
The procedure consists of getting any installed printers from the Computer and store them in an array. From There the array is outputted into a combobox. Working on a Windows 98 operating system everything worked perfectly.
When the press the combo he can select a printer and output the report on his selected printer. But as I tested the same form on windows 2000 problems started arising. The printers where stored in an array. But when they were outputted into the combobox the combobox became disabled.
---------If Anyone want to have a look at my form please let me know.

Do You Have Any Suggestions..........Thanks
 
ChrisAgius

This doesn't answer your query, but as a temporary fix, why not let the user select the printer as per your previous question "Printer error", using GETPRINTER() or REPORT FORM ... TO PRINTER PROMPT?

I tried Windows 2000 and quickly reverted to Windows 98.

Chris
[sig][/sig]
 
Combobox may become disabled if control source assigned for combobox does not exist or it mapped to cursor that have 'EOF' state. In addition, when your list contains network printers, thay might have '\\' at the start of each network printer string. This cause combobox items to be disabled. When all items disabled - well, it looks much like disabled combobox. To solve this problem, just process array in loop and remove all heading '\\' from items. When selected, add them again, if needed.
However, as Chris said, much better way is to use 'PROMPT' option of 'report form' command. [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top