Python Forum
Create a report using excel
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create a report using excel
#2
How did you create the sheet? Show us your code.
I'm guessing you didn't open the file correctly.

If you do
fo= open("sheet", 'w')
it overwrites

but if you do
fo = open("sheet", 'a')
it appends to the end.

If you do
fo = open("sheet", 'a+')
it appends but if the file does not exist it will create it
Reply


Messages In This Thread
Create a report using excel - by mamta_parida - Sep-19-2018, 02:47 AM
RE: Create a report using excel - by Barrowman - Sep-19-2018, 12:01 PM
RE: Create a report using excel - by mamta_parida - Sep-20-2018, 02:58 AM
RE: Create a report using excel - by Barrowman - Sep-20-2018, 07:49 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020