Sign in to follow this  
Followers 0
cramaboule

OLE Xstandard in AutoIt

1 post in this topic

Hello,

I've downloaded this program: xstandard

In the OLE/COM Object Viewer I see 'properties'

[id(0x00000002)
]
BSTR CSS;

I would like to know how to use it in AutoIt. I am a beginner in COM/OLE object

(I've tested a while ago the same with Adobe, and went well... but there I am lost!)

Thanks for your help

here is my code at the moment:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>



Func _Creatextandard( $XSTDL, $XSTDT, $XSTDW, $XSTDH)



    $XSTDObj = ObjCreate("XStandard.XHTMLEditor")
    $PDFActiveX = GUICtrlCreateObj( $XSTDObj, $XSTDL, $XSTDT, $XSTDW, $XSTDH)


    With $XSTDObj
        .css("C:\Program Files\XStandard\format.css")
    EndWith
    Return $XSTDObj
EndFunc


    GUICreate("Embedded PDF", 660, 500,Default,Default, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
    $XSTD = _Creatextandard(10,10,640,480)
    ;GUICtrlSetStyle ( $PDFObj, $WS_VISIBLE )
    GUICtrlSetResizing ($XSTD,$GUI_DOCKAUTO)    ; Auto Resize Object
    GUISetState()   ;Show GUI

    ; Waiting for user to close the window
    While 1
    $msg = GUIGetMsg()

    Select
            Case $msg = $GUI_EVENT_CLOSE
    _exit()

    EndSelect

    WEnd

Func _exit()
    Exit
EndFunc

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0