Can you post your code you are actually using in testing? I'm not sure what you mean.
Tracy
>>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
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"