|
I do have VS but definitely without VB installed.
|
|
|
|
|
this[^] or this[^] might do it for you... or you code just search for some other Gantt chart controls
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hello,
I want to create word document using c#,now i did the task to create simple word document using word DLL.
now my requirement is to make more automation on created word document through c# code,required automation as describe below...
-> Define header and footer,footer contains page number,while header contains some text but i need that header change on odd and even pages,which is property of word "Different Odd & Event Pages".
-> define the fix page size,and need to define margin from 4 different side.
so please help me to short out my requirements.
Thanks,
Kaushal.
|
|
|
|
|
Why don't you do some research and try it for yourself. WordApplication and WordDocument have many functions and properties to help you meet your requirements.
Why not start here[^]
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
hello musefan,
I have already search out on msdn as well as many more sites,but still i can get only which already i have implement,but i am not getting that much things which is describe in previous post and i am also continue with searching more.
nikunj padaliya
|
|
|
|
|
|
Hi musefan,
Thanks for your link,i can go through that and use that code for creating header on my application but when document is generated than i couldn't get the header text,it gives error like
"Error! Auto Text entry not defined."
Thanks & Regards
Kaushal.
nikunj padaliya
|
|
|
|
|
Are you tied to creating this document through automation? If not, and you are targetting Office 2003 or Office 2007, why not generate the document using WordML? What you would normally do, is generate a dummy document that matched the formatting you want, and then use this as a basis for applying the styling that you want via XML.
The advantage of this approach, is you don't need to have Word installed on a target machine to make use of this technique, which is great if you run this on a server.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
Thanks for your reply,i can understand your suggestion,for that can you provide me any example or any reference link,through which i can do it.
nikunj padaliya
|
|
|
|
|
Hi Kaushal,
Did you get the solution for your problem?
Basically, i am also having the same issue.
I want to fix the word document page size and want to repeat the header and footer for every page. Actually i am exporting a gridview to the Word Document. Its all working fine without using the Word dll.But now to get the fixed page size of the word doc and pagination in the word ..like footer should display the page number am i really need the word.dll? and if you find the solution for your problem please let me know by a reply to this post.
Thanks in advance.
|
|
|
|
|
Maybe you can try to use a c# word automation component to create word document and header,footer.Just like the Spire.Doc
|
|
|
|
|
how to drag and drop row from one datagrid to another(both datagrid are having equal number of columns) in C#.net
|
|
|
|
|
Try starting with DragData Demo[^]. Take on the principles and google for anything you don't understand.
If you try to do it and get stuck, or get errors, then post a question with sample code, full details of error etc.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
I have been using c# in vs 2008 (3.5) with sp1.
Restarted the machine and now I see I have lost the intellisense in the projects i.e. forms, classes..
What do I do to get the intellisense?
Thanks
|
|
|
|
|
This isn't a question for this forum. In future, please ask Visual Studio questions on the Visual Studio forums.
Seeing I'm in a good mood, this[^] might help.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
thanks for the link
|
|
|
|
|
I had .Net application which is a dll developed in c#. I want to send a message for an VC application whose EXE will be already running.
How can I do this?
|
|
|
|
|
|
Hello,
i have DataGridView, with ComboBox cell in it.
i want that after the client clicked a button, the combo will be cleaned like at the moment it was first created (index = -1).
how can i do it?
the only property that the cell exposes is Value, but when i set it to "null" or to empty string, it does not do the work. can i get the inner ComboBox somehow?
i spent a few good hours on this but no success so far.
Thank you, Liran.
|
|
|
|
|
have you tried casting the cell to a DataGridViewComboBoxCell first and then setting it through that?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I don't think you have Index property for DataGridViewComboBoxCell. MSDN link[^]
जय हिंद
|
|
|
|
|
Oh right, that's not very good then... suppose could just set the value to "" then (providing the style is not set to DropDownList) but then you could clear Items then reload them, that should reset it to it's default.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
The problem is, that the BindingSource behind the CurrentValue does not accept nulls, so it yells at me with exceptions that the value is not valid..
|
|
|
|
|
Set AllowDBNull property to true.
जय हिंद
|
|
|
|
|
If the column is databound, then:
1. Set the AllowDBNull property of the Valuemember column to true.
2. Create a DataRow with ValueMember column value as null and DisplayMember as "--Select--" or " ".
3. Insert this row at the first position of your datatable.
जय हिंद
|
|
|
|