Jump to content
Shi Feng

Automatic report generation by tcl/tk and API in hyperview

Recommended Posts

hi, guys!

In hyperview, I want to generate the report by tcl commands. But in the class hierarchy, I couldn't find the way of defining the handle about ppt (hwIPPTPublish_handle). It is appreciate for you to help me solve this problem. 

Thank you  very much.

Share this post


Link to post
Share on other sites

Its in the session class. Attached is a sample script that shows using PPTPublish handle

hwi GetSessionHandle sessionH

sessionH GetPublishingHandle pub

 

set pfadPPT "D:/tmp/test.ppt" 
catch { sessionH ReleaseHandle }
catch { pub ReleaseHandle }
catch { ppt ReleaseHandle }
hwi OpenStack
hwi GetSessionHandle sessionH
sessionH GetPublishingHandle pub 
pub GetPPTPublishHandle ppt 
ppt SetDestination new 
ppt SetPathOnDisk $pfadPPT 
ppt Publish 
ppt SaveLinkedPPTPresentation $pfadPPT 
ppt CloseLinkedPPT 

hwi CloseStack

 

Share this post


Link to post
Share on other sites

Hi, Livil Lyle.

Thanks for your answer. I also thinks that it is in the session class. But I could not find this command--GetPPTPublishHandle. When I try to use this command, the system shows the message that "Object named: sessionH (of type hwISession) could not find requested method: GetPublishingHandle. Or the method was called with incorrect arguments." The version that I use is 14.0. I have no idea how to solve this problem. It is appreciate for you to help me in this aspect.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...