[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

default printer & sqr print OCX



> Anyone have problem of using
> the SQR print OCX with setting default printer using window
> api
>
> In my script
> I first set the default printer by changing the
> win95 registry
> and then send the window message to the window
> letting it knows the default printer is changed
> using
> window's sendMessage with number 26
>
> and then call the OCX's print function, but there is no print
> out to the printer, and I cannot print anything
> until I reboot the system.
>
> And then after playing with it for a while, I found
> out if I don't do the default printer setup before
> calling the OCX's print() function, then the print
> works fine.
>
> Can anybody tells me what should I do, if I need
> to set the default printer first in the script
> before calling the print()
>
> thanks
> salina
>