Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

c# - Create excel without interop and template with or without row and columnspan

Which dll or library can be used to create the excelsheet which is not of a particular format such that a template can be used in this context. While the rows and columns may be merged. Number of columns are not fixed.

For example: In the first row column 1 and 2 are merged while in the second row the 2 rows of second column are merged. Say first row is containing 5 columns while the second row is of 4 columns.

Interop is not desired as the system running the program may not have Microsoft office installed with it.

Any suggestions would be a great helping.

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

There are several options out there (free and commercial):

Another option (though not really recommended) is to generate a HTML file with specific tags - supported by Excel as per MS documentation http://msdn.microsoft.com/en-us/library/Aa155477%28office.10%29.aspx . For a sample of this including source code see http://www.c-sharpcorner.com/UploadFile/kaushikborah28/79Nick08302007171404PM/79Nick.aspx


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...