DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

two urgent (challenge) questions with AEV!!

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
298 Views, 4 Replies

two urgent (challenge) questions with AEV!!

I have posted the following question to heidi board.

Basically, I want add/update/delete a hyper link into/from DWF file
(call API with DWFToolkit) after user click somewhere in the AEV control
(I encompassed AEV into my VC app, and display the DWF file with the AEV
control).

1) so far I don't know how to handle the event : OnExecuteURL in VC project.
For AVE, there are two important OLE DLLs:
AdPageView.dll, which contains the IAdPageViewer/IAdPage/IAdPaper, etc
and event also.

AdView.dll, which contains the IAdView, and can open a DWF file by set
the SOURCEPATH properties.

but I found there are many methods or properties are hidden though I can
view them by OLE VIEWER tool.

I'm sure the the Viewer properties of IAdView contains the IAdPageViewer
instance, so we can get the instance of IAdPageViewer.
it means we only can the instance of IAdPageViewer by IAdView instance
so far.

Anybody can share the sample code that could handle the events?

2) How can I get the correct coordinate in DWF when click mouse in the
AVE viewer control?
if there is not a function in AVE's control that support coordinate
transformation, hence, no way to locate a new URL to the position what
user want, right?

Thanks!
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Actual when I browse the interface of IAdPageViewer with OLE/COM Object
Viewer, there is a properties called _SourcePath, same with IAdView, but
it is hidden!
so IAdPageViewer can't load DWF file alone.
but I want to handle the event with IAdPageViewer. how should I do?


tioman wrote:
> I have posted the following question to heidi board.
>
> Basically, I want add/update/delete a hyper link into/from DWF file
> (call API with DWFToolkit) after user click somewhere in the AEV control
> (I encompassed AEV into my VC app, and display the DWF file with the AEV
> control).
>
> 1) so far I don't know how to handle the event : OnExecuteURL in VC
> project.
> For AVE, there are two important OLE DLLs:
> AdPageView.dll, which contains the IAdPageViewer/IAdPage/IAdPaper, etc
> and event also.
>
> AdView.dll, which contains the IAdView, and can open a DWF file by set
> the SOURCEPATH properties.
>
> but I found there are many methods or properties are hidden though I can
> view them by OLE VIEWER tool.
>
> I'm sure the the Viewer properties of IAdView contains the IAdPageViewer
> instance, so we can get the instance of IAdPageViewer.
> it means we only can the instance of IAdPageViewer by IAdView instance
> so far.
>
> Anybody can share the sample code that could handle the events?
>
> 2) How can I get the correct coordinate in DWF when click mouse in the
> AVE viewer control?
> if there is not a function in AVE's control that support coordinate
> transformation, hence, no way to locate a new URL to the position what
> user want, right?
>
> Thanks!
>
Message 3 of 5
Anonymous
in reply to: Anonymous

I HIGHLY recommend that you do not use the hidden API's they will change in
the next release. You should load the files by setting the SourcePath
property on IAdViewer.

Ben


"tioman" wrote in message
news:E8C445CFED6BC6889BD8B38B6D739CCE@in.WebX.maYIadrTaRb...
> Actual when I browse the interface of IAdPageViewer with OLE/COM Object
> Viewer, there is a properties called _SourcePath, same with IAdView, but
> it is hidden!
> so IAdPageViewer can't load DWF file alone.
> but I want to handle the event with IAdPageViewer. how should I do?
>
>
> tioman wrote:
> > I have posted the following question to heidi board.
> >
> > Basically, I want add/update/delete a hyper link into/from DWF file
> > (call API with DWFToolkit) after user click somewhere in the AEV control
> > (I encompassed AEV into my VC app, and display the DWF file with the AEV
> > control).
> >
> > 1) so far I don't know how to handle the event : OnExecuteURL in VC
> > project.
> > For AVE, there are two important OLE DLLs:
> > AdPageView.dll, which contains the IAdPageViewer/IAdPage/IAdPaper, etc
> > and event also.
> >
> > AdView.dll, which contains the IAdView, and can open a DWF file by set
> > the SOURCEPATH properties.
> >
> > but I found there are many methods or properties are hidden though I can
> > view them by OLE VIEWER tool.
> >
> > I'm sure the the Viewer properties of IAdView contains the IAdPageViewer
> > instance, so we can get the instance of IAdPageViewer.
> > it means we only can the instance of IAdPageViewer by IAdView instance
> > so far.
> >
> > Anybody can share the sample code that could handle the events?
> >
> > 2) How can I get the correct coordinate in DWF when click mouse in the
> > AVE viewer control?
> > if there is not a function in AVE's control that support coordinate
> > transformation, hence, no way to locate a new URL to the position what
> > user want, right?
> >
> > Thanks!
> >
>
Message 4 of 5
Anonymous
in reply to: Anonymous

Hi, ben,
Thanks,
According to the AEV Documentation, we should could handle the event in
VC application, right? I very appreciated you that show me a sample c++
code.

I took 2 days to code the event handler in vc project, but it doesn't
work at all.
I got the instace of IAdViewer from IAdView, then advise sink
successfully, but in fact the event can't handle.

Regards,
Chen huaping


Ben Cochran wrote:
> I HIGHLY recommend that you do not use the hidden API's they will change in
> the next release. You should load the files by setting the SourcePath
> property on IAdViewer.
>
> Ben
>
>
> "tioman" wrote in message
> news:E8C445CFED6BC6889BD8B38B6D739CCE@in.WebX.maYIadrTaRb...
>
>>Actual when I browse the interface of IAdPageViewer with OLE/COM Object
>>Viewer, there is a properties called _SourcePath, same with IAdView, but
>>it is hidden!
>>so IAdPageViewer can't load DWF file alone.
>>but I want to handle the event with IAdPageViewer. how should I do?
>>
>>
>>tioman wrote:
>>
Message 5 of 5
Anonymous
in reply to: Anonymous

The original of this message with attached file has been moved to
the Customer Files area at
news://discussion.autodesk.com/autodesk.autocad.customer-files or
http://discussion.autodesk.com/WebX?14@@.ee940b5. Please ZIP your
files if zipping will make them smaller. Zipping files (if it
saves space) is a courtesy to those who download the files.

GIFs, JPGs, or PNGs smaller than 200k only may now be posted in
all discussion groups.

See the newsgroup guidelines at
http://discussion.autodesk.com/webx?groundrules.
--
Anne Brown
Manager, Moderator
Autodesk Product Support discussion groups
Discussion Q&A: http://www.autodesk.com/discussion

======================

Subject:
Re: two urgent (challenge) questions with AEV!!
Date:
Tue, 29 Jul 2003 03:29:34 -0700
From:
"Thilak"
Newsgroups:
autodesk.express.viewer

Tioman,

Here is a sample C++ project which illustrates handling events
of AEV. This
is only a sample,
hope you can proceed from here.

cheers,
thilak

File:del.zip

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report