2017-01-17 3 views
2

이 코드는 모든 행에 적용됩니다. 3 set_header() 어떤 생각이 들었습니까?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

관련 문제