I have a requirement to paste the clipboard data to a textbox and split the data into columns as what we can do in Excel Text Import wizard.
Can anybody suggest me a starting point to get hold of this?
an idea can be put each character of first line of the text in many TextBox control which created and arranged horizontally in a windows form so an user can separate line by clicking on each text box to show the breaking points
I've found some old CPP code for a control here:
http://www.codeproject.com/KB/miscctrl/separator_ctrl.aspx
I'm still trying to find an updated version for .NET. (I'm not sure I have the time to try to convert this, myself.)
Related
I find many professional text editors like Sublime Text and Synwrite that has a feature as a Multi-Caret editor. The text caret will actually insert to different lines inside the editor so you can actually edit multiple lines for the same type of code. So there's no need for copy paste anymore.
So can anyone help to achieve this in C#?
I need help with one problem. I have to take the text from OneNote file in Clipboard or with some other shortcut or with one mouse click and insert it to RichTextBox in Visual Studio.
Only problem is that if I copy the text to RichTexBox, there is a special frame left in RichTexBox Window, so i couldn't work with the text. This frame is a note from OneNote file, because if you want to contribute to OneNote file, you have to insert this note and there is no other possibility how to write a text, am I right?
This problem could be solved by copying to MS Word (the frame disappears) and after that by using of a new copy of the text (from MS Word) and pasting it to RichTextBox in VS. I need to do that somehow in one step.
Could you please give me some tips how to do that? I need to work parse the text (rich text) in C# and convert it.
P.S.: Sorry for my English.
If you want to parse text in .one file you can use Application Interface of Onenote. By using this you can read the onenote page(XML output) and parse as you want. Application Interface 2013.
Page content:
http://pastebin.com/acgaBSe3
Where Page is:
I'm stuck in a project for school.
I have a word template, this is a empty document but it has some formatting, for example, each page has 25 lines, the font is Times New Roman and its size 12.
What I have to do is to open this template, write information and save it. When I open the template I should see the text displayed respecting the format.
How can I do this? I tried DocX library but I couldn't make work Line Spacing feature.
You can user whatever you want to make it work. It must be in C#.
Does it need to be C#? Maybe they want you to use vba?
i need to know the ways of embedding ms word with limited controls in winform . and also i want to insert some headers and footers in to the ms word. Found some articles which depicts only embedding the controls inside the winform . So my question is how to generate a document file and limit the controls of msword inside the winform . Anyone help me.
I don't believe this is possible.
What you could do however would be place a rich text field onto the screen and save the content into a .doc format - which you could make available for download or submission.
EDIT: question referrred to winforms. This can be done use standard rtf in the rich text box.
link to a tutorial on rtf tables - http://www.devx.com/asp/Article/17964/0/page/3
Is there a way that I can select a bunch of rows or cells from a SilverLight DataGrid and Copy them for pasting into e.g. excel?
The DataGrid doesn't seem to have this functionality built in!
Thanks a lot
Silverlight 4 is great, Ctrl-A a datagrid, copy and paste it into Excel.
You can even customize what gets copied using ClipboardContentBinding, which is quite useful if you are using a TemplateColumn.
I would check out this link - seems fairly useful
http://weblogs.asp.net/manishdalal/archive/2008/11/12/cross-browser-copy-and-paste-in-datagrid-with-excel-support-part-1.aspx
Silverlight uses a vector rendering system. The text is not the same as text in Notepad- it's being rendered as a vector image. You can't highlight text in Silverlight or Flash.
If you're writing the app, offer a "download Excel file" button that redirects to an Excel file generator.
Are you looking to do this programmatically? If so, then you are out of luck with Silverlight 3. Silverlight 4 is supposed to add this functionality.