Getting File error: data may have been lost - pyExcelerator related

Discussion in 'Software' started by Amudha, Aug 26, 2008.

  1. Amudha


    Aug 20, 2008
    Likes Received:
    Hi All,
    I have created xls using pyExcelerator. when i tried to open that xls sheet i getting this error message "File error: data may have been lost " ,
    Please some one help me how to rectify the above.

    my code is :
    def fnwrite(Dictionary):
    font0 = Font() = 'Verdana'
    font0.bold = True
    font0.colour_index = 2
    style0 = XFStyle()
    style0.font = font0
    wb = Workbook()
    ws0 = wb.add_sheet('Summary')
    for i, key in enumerate(LIST):
    ws0.write(0, i, key, style0)

    fnt = Font() = 'Verdana'
    fnt.outline = True
    style = XFStyle()
    style.font = fnt
    k = 0
    for key, value in Dictionary.items():
    k = k + 1
    for det in value:
    for i, elem in enumerate(LIST):
    ws0.write(k, i, det[elem], style)'out.xls')
    Amudha, Aug 26, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.