|
Thanks for the replies,
I need it embedded in the app so that I can put it out into the business and they can build up the letter by making selections e.g. a button that when clicked adds a disclaimer to the letter... these button clicks would then need to search a template document for a place holder and put in the relevant text. the docx seems to be able to do this but i need it so that the user can only manipulate the document in the app.
Any ideas
John
|
|
|
|
|
Well - the XPS solution would seem to be a goer for you. It's not trivial, but it will result in a document that you can manipulate through your code, and which renders out like a PDF. This[^] link should help.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all,
I would like to know how a can get hold of the on minimize event of a form.
Many thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Use the forms Resize event and the FormWindowState enum to determine the
forms current state.
private void frmMain_Resize(object sender, EventArgs e)
{
if (System.Windows.Forms.FormWindowState.Minimized == FormWindowState.Minimized)
this.Hide();
}
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
|
You have to handle resize event for the form. Assume your form is Form1
Form1 frm = (Form1)sender;
if ( frm.WindowState == FormWindowState.Minimized)
{
} Hope it helps
|
|
|
|
|
|
how can we assign onmouse value to a label in asp.net+ C#
plz help me
|
|
|
|
|
mrsuman wrote: how can we assign onmouse value to a label in asp.net+ C#
You can use Javascript to get the coordinate of X,Y and show it in DIV....
|
|
|
|
|
>>Score: 1.0 (1 vote).
hum? what wrong with my answer?
|
|
|
|
|
Anyone can tell me the easiest way to read the memory stream and convert it to a 2 dimensional string array.
Regards,
Murugs
|
|
|
|
|
Use a StreamReader to read the stream as text.
Why do you want it in a two dimensional array? How do you want to distribute the characters or lines into two dimensions?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I just want to store a two dimensional array in a session.Session mode is sqlserver.
I am receiving xml serialization error.so i thought of serializing it using binary formatter and then deserialize.
Any help would be apreciated
Thanks,
Murugs.
|
|
|
|
|
If you're receiving an XML Serialization error, then you should really take a look at the error itself. It sounds as though one of the classes you are trying to serialize isn't marked as Serializable. Bear in mind that you need to check the types of all of the fields in the classes to ensure that they can be serialized as well.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi All,
I have some Form application that need to open some other Form as a window child - that mean that the window child need to be ( in my case ) always on the top of the first application.
I don't know how to do it - Can someone help ?
Thanks.
-- modified at 1:45 Wednesday 7th November, 2007
|
|
|
|
|
|
|
Try to open the window as a dialog..
For example, if you wanna open "Form2" from "Form1", put the following code in somewhere (maybe, onclick) of "Form2"
Form2 f = new Form2();<br />
f.ShowDialog();
|
|
|
|
|
I having small problem to do it in this way because the main application Form was wrote in C++ and this application call some middle application ( in Com ) that pop up the C# Form.
So i wander if i can do it in some other way - like open the child window to do the same but in other way ?
Thanks.
|
|
|
|
|
ShowDialog will also block other windows in the application. If you don't mind about not blocking the other window you might try setting TopMost = true . The window will then be on top of all other windows.
|
|
|
|
|
But i want that the child window will be onTop only on the window that call him ( this one that wrote in C++ using MFC ).
I can find the Handle of this window by using FindWindow - but how to continue from this point ?
|
|
|
|
|
So, it's the C++ that's going to be opening the form? If so, you should really consider using the C++ forums as the C++ experts are on that forum.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
No ..
C++ call some com class that i wrote in C# and this class call the dialog using ShowDialog.
|
|
|
|
|
Yanshof wrote: No ..
lolz.. hey pete... he loves this C# forum only.... ))
|
|
|
|
|
What is the way to convert hex data to a ascii string?
|
|
|
|