I wrote an app which is generating some report and after clicking right button it exports all data to Excel. When I personally use it I don't want to press button. I want to do: CTRL + A , CTRL + C and paste it to Excel.
The problem here is that after CTRL + V it pastes 241 rows to Excel but in report there are 244 rows. It cuts 3 rows. I have no idea why, I tought that there is a limit but when I'm generating report with less rows it also cuts 2 rows. Any idea why is it happening ?
BTW: I didn't write any method for copying so I couldn't screw anything. I would be grateful if someone would help me.
Are you using a web app or a windows app?
You could mimic the button press using a key combination (like ctrl+v) if it's a web app
Look here for more information:
看一下WPF数据网格粘贴 ,当我实现类似功能时它对我有帮助。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.