OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on October 01, 2009, 03:13:15 PM

Title: PDF in OpenDCL
Post by: velasquez on October 01, 2009, 03:13:15 PM
Did anybody already work showing files PDF in OpenDCL?
Title: Re: PDF in OpenDCL
Post by: BazzaCAD on October 01, 2009, 03:16:57 PM
I did a small test and was able to use the ActiveX control to add the Adobe PDF reader & view a file, but that's all I did.
Title: Re: PDF in OpenDCL
Post by: velasquez on October 01, 2009, 03:31:24 PM
I need to do the same.   
Can you post an example?

Thanks
Title: Re: PDF in OpenDCL
Post by: velasquez on October 21, 2009, 02:37:27 AM
Hi BazzaCAD

Do you can me to show as doing this? 
Thanks
Title: Re: PDF in OpenDCL
Post by: Fred Tomke on October 21, 2009, 10:09:47 AM
Hi, velasquez,

try the attached sample:
Code (autolisp) Select

(defun c:pdf ()
  (command "opendcl")
  (dcl_project_load "pdf")
  (dcl_form_show pdf_pdf)
  (dcl_AxControl_Put pdf_pdf_PDF1 "src" "d:\\tut_flora_07.pdf")
  (dcl_AxControl_Invoke pdf_pdf_PDF1 "setZoom" 200.0)
  (princ)
); pdf


@Owen: I get an error but I cannot narrow down the reason - if it is a problem of mine or a general one.
Fred
Title: Re: PDF in OpenDCL
Post by: BazzaCAD on October 21, 2009, 10:30:03 AM
I was going to throw one together, but it looks like Fred beat me to it again.
I get the unhandled exception error also...
Title: Re: PDF in OpenDCL
Post by: velasquez on October 21, 2009, 10:57:33 AM
Thank you Fred, 
 
I will work with this to see how it works. 
This cleared my ideas.
Title: Re: PDF in OpenDCL
Post by: owenwengerd on October 21, 2009, 11:10:12 AM
Quote from: Fred Tomke on October 21, 2009, 10:09:47 AM
@Owen: I get an error but I cannot narrow down the reason - if it is a problem of mine or a general one.

It was a bug, now fixed for Alpha 10.
Title: Re: PDF in OpenDCL
Post by: velasquez on October 21, 2009, 12:19:51 PM
Great.
Excellent the work.