Changeset a64772c in sasview for src/sas/sasgui/guiframe/report_dialog.py
- Timestamp:
- Feb 27, 2018 8:53:46 AM (7 years ago)
- Children:
- afb311e
- Parents:
- 9507553
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/report_dialog.py
r9507553 ra64772c 130 130 resultFile = open(filename, "w+b") 131 131 # convert HTML to PDF 132 data = '<html><head><meta http-equiv=Content-Type content=text/html; charset=windows-1252><meta name=Generator ></head><body lang=EN-US>' \133 '<div class=WordSection1><p class=MsoNormal><b><span ><center><font size=4 >cyl_400_40.txt [Feb 26 2018 12:04:42]</font></center></span></center></b></p>' \134 '<img src="Untitled_img1.png" ></img></div></body></html>'135 pisaStatus = pisa.CreatePDF(data, dest=resultFile )132 #data = '<html><head><meta http-equiv=Content-Type content=text/html; charset=windows-1252><meta name=Generator ></head><body lang=EN-US>' \ 133 # '<div class=WordSection1><p class=MsoNormal><b><span ><center><font size=4 >cyl_400_40.txt [Feb 26 2018 12:04:42]</font></center></span></center></b></p>' \ 134 # '<img src="Untitled_img1.png" ></img></div></body></html>' 135 pisaStatus = pisa.CreatePDF(data, dest=resultFile, debug=True, show_error_as_pdf=True) 136 136 # close output file 137 137 resultFile.close()
Note: See TracChangeset
for help on using the changeset viewer.