如何将Excel行转换为列和列到C#中的行? [英] How Do I Transpose The Excel Rows Into Columns And Columns Into Rows In C#
本文介绍了如何将Excel行转换为列和列到C#中的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hii all
我的excel应用程序是否有transpose()函数将excel行转换为行和列成行???
请帮助
-thankyou
-tushar
hii all
is there any transpose() function for my excel application to transpose the excel rows into columns and columns into rows ???
pls help
-thankyou
-tushar
推荐答案
假设您正在使用VSTO:您应该可以调用PasteSpecial,并将Transpose参数设置为'true'放在剪贴板上的范围:[< a href =http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.range.pastespecial.aspxtarget =_ blanktitle =New Window> ^ ]。
Assuming you are using VSTO: you should be able to invoke PasteSpecial with the Transpose parameter set to 'true on a Range you have put on the Clipboard: [^].
请阅读MSDN文档。有一个转置功能 [ ^ ]。
Please, read MSDN documentation. There is a Transpose function[^].
这篇关于如何将Excel行转换为列和列到C#中的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文