예제 #1
0
def test_word_basic():
    '''
    http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=14166
    '''
    temp_file_name = nt.tempnam() + ".word_basic.doc"

    word_basic = getRCWFromProgID("Word.Basic")
    if is_snap:
        word_basic.AppShow()
    word_basic.FileNewDefault()
    word_basic.Insert("some stuff...")
    word_basic.FileSaveAs(temp_file_name)
    if is_snap:
        word_basic.AppHide()
    del word_basic

    Assert(file_exists(temp_file_name))
    delete_files(temp_file_name)
예제 #2
0
def test_word_basic():
    '''
    http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=14166
    '''
    temp_file_name = nt.tempnam() + ".word_basic.doc"
    
    word_basic = getRCWFromProgID("Word.Basic")
    if is_snap:
        word_basic.AppShow()
    word_basic.FileNewDefault()
    word_basic.Insert("some stuff...")
    word_basic.FileSaveAs(temp_file_name)
    if is_snap:
        word_basic.AppHide()
    del word_basic
    
    Assert(file_exists(temp_file_name))
    delete_files(temp_file_name)