Subversion Repositories SmartDukaan

Rev

Rev 15929 | Rev 16987 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15929 Rev 15930
Line 96... Line 96...
96
        cursor = conn.cursor()
96
        cursor = conn.cursor()
97
        # Execute the SQL command
97
        # Execute the SQL command
98
        # Fetch source id.
98
        # Fetch source id.
99
        cursor.execute(selectSql)
99
        cursor.execute(selectSql)
100
        result = cursor.fetchall()
100
        result = cursor.fetchall()
101
        workbook = xlwt.Workbook("utf-8")
101
        workbook = xlwt.Workbook("ISO-8859-1")
102
        worksheet = workbook.add_sheet("Segmented User")
102
        worksheet = workbook.add_sheet("Segmented User")
103
        boldStyle = xlwt.XFStyle()
103
        boldStyle = xlwt.XFStyle()
104
        f = xlwt.Font()
104
        f = xlwt.Font()
105
        f.bold = True
105
        f.bold = True
106
        boldStyle.font = f
106
        boldStyle.font = f