|
Thank you.
Thanks a lot for your time and support. I am grateful to you.
|
|
|
|
|
A customer have an CRM with custom revision handling.
When I open, change and save a document (2007) I must force the custom revision on the document.
In the header I have 2 fields {AUTHOR \* MERGEFOMAT} and {INFO RevNum} that I need to update programatically using using Word = Microsoft.Office.Interop.Word
After a days serch I am bewildered. Does anyone know of a way to do this?
Java
C#
Gupta Team Developer 3.1
VC++ 2003
Oracle 8i79i
W2K-XP
|
|
|
|
|
WordDocument has a property called 'Fields' which is a list of Word.Field Type which has a function called Select()
I not sure but i would assume that would select the field for you to add text to
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Code like below below works. But I need to replace the text in a QuickPart in the header.
----
using System.Reflection;
using Word = Microsoft.Office.Interop.Word;
using System.Text;
namespace Word
{
public partial class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
public Form1() //constructor
{
InitializeComponent();
}
private void button1_Click(object sender, System.EventArgs e)
{
Word.Application app = new Word.Application();
if (textBox1.Text.Length > 0)
{
app.Visible = true; // krister
object template = Missing.Value;
object newTemplate = Missing.Value;
object documentType = Missing.Value;
object visible = true;
object nullvalue = Missing.Value;
object truevalue = true;
object falsevalue = false;
object filepath = "C:\\testdokument.docx";
Word._Document doc1 = app.Documents.Open(ref filepath,
ref nullvalue, ref nullvalue, ref nullvalue, ref nullvalue, ref nullvalue,
ref nullvalue, ref nullvalue, ref nullvalue, ref nullvalue, ref nullvalue,
ref nullvalue, ref nullvalue, ref nullvalue, ref nullvalue, ref nullvalue);
doc1.Words.First.InsertBefore(textBox1.Text);
}
object saveChanges = false;
object originalFormat = Missing.Value;
object routeDocument = Missing.Value;
app.Quit(ref saveChanges, ref originalFormat, ref routeDocument);
}
}
}
Java
C#
Gupta Team Developer 3.1
VC++ 2003
Oracle 8i79i
W2K-XP
|
|
|
|
|
A little known trick to help with MS Office automation by kubben gave me a good start
Java
C#
Gupta Team Developer 3.1
VC++ 2003
Oracle 8i79i
W2K-XP
|
|
|
|
|
Hello,
I am using the Smart client software factory(SCSF) to developing of an application.
I have created many views with UI.
By default When shell form loads..then..first view is loading into the shell form.
now i want to load second view form on shell application.
Can anybody help me how to solve this.
Thanks in advance,
|
|
|
|
|
Hi all,
I am using Sql server reporting services for creating reports. While using Sub reports I am getting error :-
Error sub report can't be loaded.What is the reason.Can anybody tell the solution of it
Thanks
|
|
|
|
|
can you tell me how can i build a tree in c#?
please show me source example
|
|
|
|
|
1. Dig a hole
2. Put Tree in
3. Put compost
4. Close with Sand
5. Throw water.
In a few years time you have a tree.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Earth.Soil.Dig( 30cm );
Earth.Soil.Plant( new Tree() );
Earth.Soil.Fill( new Compost(), 30cm );
Earth.Soil.Cover( new Sand() );
Earth.Soil.Water( WateringCan.Get() );
|
|
|
|
|
You all are going great....
|
|
|
|
|
Warning: Do not try this at home
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Add a Treeview control, and use
tv.nodes.add
Thats all you need. Nesting can be done using node objects
|
|
|
|
|
People are not even trying anymore.
|
|
|
|
|
Lego. Bricks and mortar. Origami. There are so many ways!
|
|
|
|
|
How can I change the icon of an exe file programatically?
|
|
|
|
|
You need to read the portable executable format of the EXE/DLL, replace the image that you want in the binary, and then save it.
You'll need the PECOFF reference from Microsoft to understand the format of the file. You can find that reference here[^].
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
|
I guess you have to write InternetGetConnectedState(out int Description, ... .
|
|
|
|
|
change to this line...
private extern static bool InternetGetConnectedState(out int Description, int ReservedValue);
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
|
No Prob
in case you dont know what the issue was it is because the 'out' keyword needs to go before the type (int)
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi guys,
i've done a site that will allow SMSs be sent to members' mobile phones whenever there's an important msg to be passed.
However, i can't programmatically retrieve values from the server and send the SMSs.
i need to know how to do this without anyone doing it manually. like just set a date and time, and then it'll execute.
thanx.
He who goes for revenge must first dig two graves.
|
|
|
|
|
Hi,
Please give me some links of speech to text convertion project.
what are the concept behind this to develop this application.
Thankyou,
YPKI
|
|
|
|
|
ypki wrote: Please give me some links of speech to text convertion project.
what are the concept behind this to develop this application.
It is very difficult to write code to wreck a nice beach and often the results are poor. I suggest you might want to look into existing libraries or frameworks that do this.
|
|
|
|