Iam doing the following
long li_ret
Oleobject lole_1
lole_1 = Create oleobject
li_ret = lole_1.ConnecttoNewobject("PdfCreactiveX.PdfCreactiveX")
li_ret = lole_1.Open("c:\noa.pdf","")
lole_1.Print("\\ISAWSNTPS1\CalCtr010p1",0)
another thing is, I tried having the Prdfcreator control on the window as a Ole control and I had the noa.pdf open, then I tried the above code which I had placed in the Clicked event of a button , In that case it just printed a Blank Page.
PLease Let me know what the problem is?
Thanks in advance
Suresh
Code: Select all