|
No backwatrd compatibility means you can only open one specific version of Word with a given dll. However, these programs themselves contain backward compatibility, so I recommend to use dll version 11.0 (Word 2003), that way you can open earlier version doc files.
|
|
|
|
|
The application has to support all word versions.
|
|
|
|
|
|
|
Hi all,
we generate xml code with our application and then we create a html document by combining th xml and pre-created xsl. We use the following code to print the resulting html document...
Process myProcess = new Process();<br />
myProcess.StartInfo.FileName = TemplatePath + "\\Invoice.HTML";<br />
myProcess.StartInfo.Verb = "Print";<br />
myProcess.StartInfo.CreateNoWindow = true;<br />
myProcess.Start();
Now, are there any added lines that would remove the header (by default: Page 1 of 1) and the footer (by default: "the file path" and "todays date") before i print the document?
Thank you in advance
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
You cannot do this in code, you will have to do this in IE. File->Page Setup then clear the header and footer boxes. Or if you use any other browser then check their documentation on how to do this.
|
|
|
|
|
o okay. I thought as much... so the client will just have to do this on their own...
thank you for your time.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
No problem. I had a week's worth of struggling with that same thing. what I did in the end was just create a pdf document instead and print that (using Crystal Reports) - for some reason this did not include the header and footer. (I had to create a document that could be printed online)
|
|
|
|
|
Hi all,
I am using Listview control in vb.net 2005, in that i am using a column header in that. I wish to change the style(back color) of the column header. I searched for it in the Properties, but i can't found it. Can any one suggest me how to change the Backcolor of the column header.
It's little urgent plz
Thanks in advance
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
you'd have to set OwnerDrawand property to true and add DrawColumnHeader, DrawItem or DrawSubItems event..
life is study!!!
|
|
|
|
|
hi seishin,
Really thanks for your help.Could you please suggest me some code samples for implementing the same.I am really new to this concept.
So if you could send me some sample code, it would be of great use.
Thanks in advance.
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
http://www.codeproject.com/cs/miscctrl/customheader.asp
life is study!!!
|
|
|
|
|
I am developing a c# application which opens a .xls file using Excel object of c#.
If the file is already opened by another user for writing I need to display that users name in a MessageBox.
I have noticed that if Excel objects DisplayAlerts option is set true Excel application displays a messagebox for notifying the username who is modifying the file. But I want to display customised messagebox from my application.
Please help me. Solution required urgently.
|
|
|
|
|
Hi,
I don't know which shade of lipstick to apply tonight - any suggestions
Seriously though, I have the following code populate a multiline text box:
DateTime currentDateTime = DateTime.Now;<br />
string now = currentDateTime.ToString("MMM dd, yyy");<br />
textBoxMemberNotes.Text = now + Environment.NewLine + Environment.NewLine;
The problem I wish to overcome is that the resultant text is highlighted and if the user just starts typing then the text inserted by the above code is rightfully deleted.
How can I "move the cursor" (so to speak) programatically so that this doesn't happen?
Thanks in advance
Glen Harvy
|
|
|
|
|
The following should work (maybe you have to tweak the parameters). Alternatively you can set the SelectionStart and SelectionLength properties.
textBoxMemberNotes.Select(textBoxMemberNotes.Length - 1, 0);
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
how can i dynamically call a windows user control in a windows Form
|
|
|
|
|
just initialize as u declare and initialize any other object.
<br />
UserControl1 userControl1 = new UserControl1();<br />
And then assign it to the panel that you wish it to show in.
<br />
userControl1.Parent = Panel1;<br />
this wont yet show the user control, you should use the show function to show it in the panel
<br />
userControl1.Show();<br />
|
|
|
|
|
How can i get a table (no ID) through Webbrowser object in C#?
Any suggestion for me pls?
|
|
|
|
|
Give some detail abt ur work.. it is difficult to understand..
Ravi Kant Srivastva
(Design Engineer)
HandsOn Technology
|
|
|
|
|
After a HTML page is loaded by Webbrowser object, i can get the textbox, combobox and even submit a form through that webbrowser. But i cant find a way to get a table.
Cuz i wanna get the table (have no ID), in the HTML page, then i can retrieve the data from that table cell. I can do it in MS Access like this:
txtResult = WebBrowser0.Document.all.tags("Table")(TableNum).Rows(RowNum).Cells(ColNum).innertext
I wanna do the same thing in C#. Any hints or sample?
|
|
|
|
|
There u r buddy... but MS-Access creates it own internal ids or sometime table after tables...
if u want to do this...
do like this...
var oTBL= document.getElementsByTagName("table");
this will return a array of all the tables from ur webpage... but the problem is how will u find ur tables. if u r having more then one table or nested tables...
so do 1 thing and its recommended .. when ever u have to work on objects u should keep ids, if dynamic then dynamic ids.. that will make ur life lot easier...
if u have only one table then
<br />
<br />
var oTBL= document.getElementsByTagName("table");<br />
for(var i=0;i<oTBL.length;i++)<br />
{<br />
}<br />
<br />
|
|
|
|
|
I want a web API for sending and receiving mail
in C#
RoshanSrivastava
|
|
|
|
|
There are tons of articles for mail handling, try searching the articles..
Internet - the worlds biggest dictionary
|
|
|
|
|
I just discovered the "\protect" and "\protect0" RTF code word (whatever RTF people call them, code words or tags or whatever). I wanted to implement it into my little program (it has a RichTextBox control).
I can get it to protect the rich text just fine (cannot be edited), but it's not unprotecting protected text at all. Can someone please take a look at my code snippet and tell me what I'm doing wrong?
Note: The following code is inside my KeyDown event handler, inside an if-block that checks for the CTRL key being down, so CTRL+P makes this run.
if (e.KeyCode == Keys.P)
{<br />
string line = rtf.SelectedRtf;<br />
string text = rtf.SelectedText;<br />
Console.WriteLine("-----LINE-----\r\n{0}\r\n", line);<br />
if (line.IndexOf("\\protect") > -1)
{<br />
Console.WriteLine("unprotected:");<br />
line = line.Replace("\\protect0", "");<br />
line = line.Replace("\\protect", "");<br />
Console.WriteLine(line);<br />
rtf.SelectedRtf = line;<br />
}<br />
else<br />
{<br />
Console.WriteLine("protected");<br />
int start = line.IndexOf(text, line.LastIndexOf("\\"));<br />
int end = start + text.Length;<br />
line = line.Insert(end, @"\protect0");<br />
line = line.Insert(start - 1, @"\protect");<br />
rtf.SelectedRtf = line;<br />
}<br />
}
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
This is just to help new people.
In this code following line of code should be changed
string line = rtf.SelectedRtf;
string text = rtf.SelectedText;
TO
string line = rtf.Rtf;
string text = rtf.Text;
It works for me after making this change
Thanks
|
|
|
|