Printing an Excel sheet to PDF - Print to filename
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi, I am using the .PrintOut solution found on this page: http://www.mathworks.com/support/solutions/en/data/1-BBJDW0/index.html?product=ML&solution=1-BBJDW0
I am trying to use the PrToFileName argument, but it is still asking for a filename to save as. I am using the following code:
hWorksheet.Range('A1:N10').PrintOut(1,1,1,'False','ScanSoft PDF Creator!','True','True','C:\test.pdf');
So the code saves the PDF, but it asks me for the filename instead of taking it from the argument. Am I doing something wrong?
Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!