>>>How to Change Windows default printer in Win 98 programatically?
>
>>You don't! I suggest that you fix your problem instead of fixing the result of your problem. Remove the printer specific information from your frx. Use the FRX, and remove the printer specific info from the expr field.
>
>Sir, I am using a third party tool for printing to Dot Matrix printer. It works properly if printing to Windows default printer. But misses sometime otherwise.
>I do have some reports in VFP report writer, for those I could remove the printer info.
>
>That is the reason why I wanted such a solution.
OK, I see. And this third party tool does not give you the option to change printer, or it only works fine when you print to the default printer? If so, I suggest that you try the "good old" Dos command MODE, or if the printer is a network printer you can use NET USE. You can use RUN to call these commands. Not very elegant, but it should do the trick.