2017-01-17 72 views
2

此代碼適用於所有行期望3 set_header s() 任何想法?XlsxWriter無法設置標題

ws.set_print_scale(40) 
ws.set_header('&L&F') 
ws.set_header('&CNewCo Inc.') 
ws.set_header('&R&D') 
ws.set_portrait() 

f1h = wb.add_format() 
ws.set_column(0, 0, 5) 

回答

3

你應該發出set_header()命令:

ws.set_header('&L&F &CNewCo Inc. &R&D') 
+0

你的人!非常感謝。實際上,我現在看到最後一個set_header()實際上正在工作,但在我發佈這個問題之前,我並沒有注意到某些原因。 – Steve