Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
318 views
in Technique[技术] by (71.8m points)

c#, Microsoft Interop Excel library: resize in correct format

I am using c# and Interop library and winform. I have a problem with the pdf exported using this code to create pdf, it is working:

Workbook wkb = GetApp().Workbooks.Open(excelLocation);
wkb.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, outputLocation);

wkb.Close();
GetApp().Quit();

It is working but I have problems in the design. The page in pdf at 100% of size (normnal size) is:

enter image description here

Too small, I would like to see the table biggest.

when you open in excel size isnormal. why not in PDF exported file? Do I need extra configuration in ExportAsFixedFormat?

How can I do it?

question from:https://stackoverflow.com/questions/65937021/c-microsoft-interop-excel-library-resize-in-correct-format

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...