>I don't have any crashes using this code. Strange... It works fine on my system...
>I'm using Adobe Reader 6.02...
>
>>>I don't know what I was thinking (or not thinking). This does it:
>>>
>>>
>>>*--Do not hide the print dialog window (/h switch hides it)
>>>IF ShellExecute(0, "open", "acrord32.exe", " /p "+lcpfile, "", 0) <= 32
>>>
>>
>>Yep. I just tried that too :-)
>>But the /p still crashing Adobe, right after the "printing..." dialog window disappear.
I tried not to use /p. So, I'm using CreateProcess and not showing the Adobe window then make the heigth and width to 0. Runs & print very fine.
I'm spying on what the /p do exactly. It using the same technique! But why it crashed ? I'm confused now...hehehe..
Cheers
Herman