|
Hi all,
I’m a C++ developer and a very beginner in both C# (.Net) and Word Programming. What my company wants next is something like this: from different texts to build a Word 2007 document and then open this in the real Word 2007 application to give the user the possibility to change the document as usual with all possibilities (Menüs, Panels, etc.). Well my problem is that the Word 2007 must be embedded in our C# - Application (WinForms).
Knows somebody a solution to do this: embed the Word 2007 application in WinForms or if better maybe in WPF? For any idea thank you in advance.
Best Regards,
Emil
|
|
|
|
|
Your question has already been answered in c# forum
|
|
|
|
|
I need help with the code for making an mdiform transparent
tony-yeyo
|
|
|
|
|
First of all, please don't post the same question twice.
Second, set the backcolor of your form. Then set the transparent key to the same color. You will also have to set the controlbox property to false, and maybe mess with the FormBorderStyle propery.
Hope this helps.
|
|
|
|
|
Can I get some help with the code for making an Mdiform transparent?
tony-yeyo
|
|
|
|
|
how can I make an Mdiform transparent
tony-yeyo
modified on Sunday, February 03, 2008 5:12:08 PM
|
|
|
|
|
If I were you I'd start trying to become myself transparent...
Read the posting guidelines... and post that messasge to the right board...
Put on the flame suit...
|
|
|
|
|
Ooooh, you need a magic wand for that one.
Alternatively, because the bunnies are loose you could post to the forums of the language of choice...
Just a thought.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"The secret to a long and healthy life is simple. Don't get ill and don't die." Pete O'Hanlon, courtesy of Rama
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
*Elaine hides from the killer bunny rabbits*
|
|
|
|
|
I finally got back online after a near 12 hours of no internet connectivity!
let me say
very reminiscent of the monty python
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"The secret to a long and healthy life is simple. Don't get ill and don't die." Pete O'Hanlon, courtesy of Rama
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
Do not post programming questions in the Lounge!
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
I am using the DateTimePicker to get a time from my users. It has a custom format of mm:ss. I have my ShowUpDown set to true.
However, most of the time changes my users will be making will be in the seconds field. The upDown defaults to changing minutes. Is there a way to make the default be seconds?
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
|
hi all,
i am facing a problem in windows mdi form application.how can we know a child form is exist or not. in mdi form i have taken toolstripmenuitem.in that click event i was trying to show a child form1 when we click that menu item for that i am using show method.but when click second time the new child form1 is created.i want show that child only once.if its already it must be restored.how can restore the child form1 if its already exists .and how can we if child form is exist or not.
thanks in advance
regards
obalesu n
|
|
|
|
|
See an answer for a similar question here:
MDI Form[^]
|
|
|
|
|
thanks for reply,
but i could't understand that code .please send cleary.
regards
obalesu
|
|
|
|
|
you could do something like the following in your clicked_handler.
it goes through all mdi childforms....if the one you are trying
to open is already opened, it activates the windows and returns.
if it's not found, it creates a new mdi childform.
<br />
foreach (Form f in this.MdiChildren)<br />
{<br />
if (f.Name.Equals("mySubForm"))<br />
{<br />
f.Activate();<br />
return;<br />
<br />
}<br />
}<br />
<br />
mySubFormn f= new mySubForm(this);<br />
f.MdiParent = this;<br />
f.Show();<br />
|
|
|
|
|
Hi All,
Is there any means to Generate an XML file by reading the XSD file. We need to use the Default values of each XSD element in the XML.
Thanks in advance.
With Regards,
M. Gangadhar.
Share knowledge to grow
|
|
|
|
|
GangadharMG wrote: Is there any means
Do you mean besides writing the code to do it?
led mike
|
|
|
|
|
please send me the reply of the question in subject, i.e. how to use stylesheet class for crystal reports in windows form in VS 2005.
Imran Rizvi
|
|
|
|
|
Hi Imran,
Which version of Crystal Reports are you using? Is it the bundled version (version comes along with VS2005) or the full product?
You can apply a style sheet to a report object if you use Crystal Reports 9 or 10 Developer or Advanced edition.
However, you cannot apply a style sheet if you use Crystal Reports for Visual Studio .NET (CR for VS
.NET). This is an embedded version of Crystal Reports that is installed with Visual Studio .NET.
To apply a style sheet with Crystal Reports 9 or 10:
1. Right-click the report object (you want to apply a style sheet to) and select 'Format Field'.
2. On the 'Common' tab, type the style class name (defined in your style sheet) in the 'CSS Class Name' field.
I hope this helps.
3. Save and close the report.
4. Edit your HTML code to have your web page recognize the style sheet.
For example, if your style sheet is named 'Style.css', use the following HTML code:
<!-Start HTML code -->
<HEAD>
<TITLE>My Webpage</TITLE>
<link rel="stylesheet" type="text/css"
href="Styles.css">
</HEAD>
<!-- End HTML code -->
Additional Information
--------------------
CR for VS .NET cannot apply style sheets to report
objects because the 'CSS Class Name' field is not
available as a format option for a report object.
In addition, when you format a report object in CR for
VS .NET, a style class name (with the format details)
is randomly created. Since the class name is randomly
created, it cannot be added to a style sheet.
To use your own style class name in a style sheet,
upgrade to Crystal Reports 9 or 10 Developer or
Advanced Edition.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
From last night I was at work until 03H30 this morning, due to, among other things, what I find a strange quirk in an unbound DataGridView. When I use a class derived from DataGridViewRow, and add two or more of these rows to the grid, without populating their cells (still creating them), all my custom properties are set to null from the second row onwards. It doesn't matter whether I populate the cells of the first row or not, it always survives, but for every subsequent row, if I don't populate at least one cell, it gets sanitised. Even if the first row has no populated cells, populating one cell on a subsequent row ensures its survival.
I will illustrate. I have numbered only the lines that are relevant. The grid does not allow additions, so there are only two rows.
1. In the current state, firstRow.RowName = "Row A" and lastRow.RowName = "Row B".
2. If I comment out line 4, firstRow.RowName = "Row A" and lastRow.RowName = {null}.
3. It doesn't seem to matter at all whether lines 1 and 2 are commented out or not.
note
public class NamedRow: DataGridViewRow
{
public NamedRow() {}
public NamedRow(string rowName):this()
{
this.RowName = rowName;
}
public string RowName { get; set; }
}
private void GridBadForm_Load(object sender, EventArgs e)
{
dgvLayout.Columns.Add("Column 1", "Column 1");
dgvLayout.Columns.Add("Column 2", "Column 2");
NamedRow namedRowA = new NamedRow("Row A");
namedRowA.CreateCells(dgvLayout);
NamedRow namedRowB = new NamedRow("Row B");
namedRowB.CreateCells(dgvLayout);
namedRowB.Cells[1].Value = "B Two";
dgvLayout.Rows.Clear();
dgvLayout.Rows.Add(namedRowA);
dgvLayout.Rows.Add(namedRowB);
NamedRow firstRow = (NamedRow)dgvLayout.Rows[0];
NamedRow lastRow = (NamedRow)dgvLayout.Rows[dgvLayout.Rows.Count - 1];
Debug.Print(firstRow.RowName);
Debug.Print(lastRow.RowName);
}
|
|
|
|
|
Hello
Im after code that opens an application in "full screen", I want to keep the start menu visible. (Using WPF Window)
this.WindowState = WindowState.Maximized;
Covers the whole screen....
Cheers
Spaz
modified on Monday, January 28, 2008 6:42:16 AM
|
|
|
|
|
Hei
I´ve got a solution that works, not optimal, but it works
this.Left = 0;
//place our form at top
this.Top = 0;
this.WindowState = WindowState.Normal;
this.Height = SystemParameters.PrimaryScreenHeight - 30;
this.Width = SystemParameters.PrimaryScreenWidth;
Spaz
|
|
|
|
|
Hi Spaz, have also problem with this full screen Form. I use VB.Net Express 2005. How to make this form covers all windows screen ? Canyou help me, plz?
Best Regards,
Ahmad Rifai Yusuf
|
|
|
|