|
Why not a static class?
TheDocument.Print ( data )
|
|
|
|
|
hello all,
I created a custom Ribbon for word 2007 using VS 2008.
I have 4 editboxes on that ribbon in which user is going to enter some data.
I would like to attach this data to the same word file and save it, so that when i open this document i can see the contents with the user entered values in particular EditBoxes.
Can anyone suggest me how to do this ??????????
|
|
|
|
|
Hi,
I want nodes of tree view should behave like hyperlink. This I achieved by setting HotTracking property of tree view asTrue .
Now I want to change my Cursor as I hover over the Node text not the full row range.
Firstly:
I used NodeMouseHover event but cannot change the cursor to default.
Secondly:
private void treeView1_MouseMove(object sender, MouseEventArgs e)
{
if (treeView1.GetNodeAt(e.X, e.Y) == null)
treeView1.Cursor = Cursors.Default;
else
treeView1.Cursor = Cursors.Hand;
}
I used above TreeView MouseMove event. Using this I get default cursor when I hover over blank space of treeview but the cursor changes to hand when the pointer is not even over text and Node is not even underlined (using HotTracking).
Please help me to get cursor change only on text of Node.
|
|
|
|
|
Hi!!!
I am trying to display image from C and D drive using following code. The code is very simple. Here it is:
protected void Page_Load(object sender, EventArgs e)
{
Response.Write ("<table border='1'>");
Response.Write ("<tr>");
Response.Write ("<td><img src='D:\at.jpg'></td>");
Response.Write ("<td><img src='C:\try.jpg'></td>") ;
Response.Write ("</tr>" );
Response.Write("</table>");
}
I neither get image on page nor error message. How could i resolve it?Please guide me...
|
|
|
|
|
Well, there's a few issues here. 1 - you are in the wrong forum. 2 - your asp.net site cannot see above it's root. 3 - I believe your \a and \t will be interpreted as special characters. Put an @ in front of the string to avoid this. @"<img... etc=""
<div="" class="ForumSig">Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
try this:
protected void Page_Load(object sender, EventArgs e){
Response.Write (@"<table border='1'>");
Response.Write (@"<tr>");
Response.Write (@"<td><img src='D:\at.jpg'></td>");
Response.Write (@"<td><img src='C:\try.jpg'></td>") ;
Response.Write (@"</tr>" );
Response.Write(@"</table>");}
|
|
|
|
|
Thankyou Blikkies!!
Thankyou so much...
|
|
|
|
|
Blikkies's code will not work,it will not display images.
By the way you should post this question in ASP.NET forum.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
But you have to take the images and paste it into your project, then the code should look like this:
protected void Page_Load(object sender, EventArgs e){
Response.Write (@"<table border='1'>");
Response.Write (@"<tr>");
Response.Write (@"<td><img src='at.jpg'></td>");
Response.Write (@"<td><img src='try.jpg'></td>") ;
Response.Write (@"</tr>" );
Response.Write(@"</table>");}
To able the client to see the images, the images should be in the Project folder.
|
|
|
|
|
One thing i want to ask...
I assign image path to some string variable like this:
string path = "C:\at.jpg'
and apply this:
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(@"<table border='1'>");
Response.Write(@"<tr>");
Response.Write(@"<td><img src=path></td>");
Response.Write(@"<td><img src='D:\try.jpg'></td>");
Response.Write(@"</tr>");
Response.Write(@"</table>");
Then it does not display image neither it shows any error message. Why so?Please help..
|
|
|
|
|
One thing you must know,you CAN'T load image which is located outside project's folder,because this is ASP.NET,buy the way your image control is HTML Image and still this doesn't provide you possibility to load images as you are trying.
Why you don't create one folder inside your project and programmatically save images in that folder and then load it.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Because your image should be in the project, you cant attatch images that out side the project. I take it that you did window form before moving to asp, in a window application you can specify source of image like "C:\aaa.jpg" but in html or asp its different ex. let say all your files including asp and C# files is in "c:\inetpub\wwwroot\Myproject", you have to insert your image aaa.jpg into "c:\inetpub\wwwroot\Myproject" then your code should look like this
<img src="../aaa.jpg" />
Hope this help you.
|
|
|
|
|
You have to save image inside project folder,and insetad giving path to src property then just write name of image.
Response.Write ("<td><img src='at.jpg'></td>");<br />
Response.Write ("<td><img src='try.jpg'></td>") ;
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Also, for you to do this at all, is totally wrong. That's not what ASP.NET is for, it's better than that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have an application with CrystalReports. The app works fine on the dev machine but fails on the production machine because of some Crystal .dll not loading. I have set Copy Local to true for all the crystal reference files therefore they are copied to the bin folder. I copy all files from the bin folder to the production machine but still fails. Any idea what else I should do?
CodingYoshi
Artificial Intelligence is no match for Human Stupidity.
|
|
|
|
|
You have to use the Crystal Reports redistributable msi and build an installer or have the user manually install the Crystal Redistributable for your given version. At least this is how this problem used to be fixed. I haven't deployed Crystal in a while.
|
|
|
|
|
Using/Deploying crystal reports is a real pain
|
|
|
|
|
It just takes experience. There is a common theme in aviation that there are many pilots with 500 hours experience. Some have the same hour 500 times and some have an actual 500 hours. I think Crystal is the same way. The intro and learning curve is so steep that people initially only learn the hacks and then repeat thus giving it a bad rap. While there are many things I can do in Dev Express that I can't do in Crystal it isn't exactly a cake walk there either.
|
|
|
|
|
Thanks a bunch! I downloaded the merge module from
http://resources.businessobjects.com/support/additional_downloads/runtime.asp#09[^]
for VS 2005. I followed the steps in the word document file to create a setup project and add the downloaded module using Add, Merge Modules. Everything works fine.
My next question is, do I have to bundle every app which has Crystal Reports with this module or once the module is added, I do not need to do it again. In other words, does it work similar as adding a .dll to GAC?
CodingYoshi
Artificial Intelligence is no match for Human Stupidity.
|
|
|
|
|
It has been a long time since I have made an installer but the msi should not reinstall itself it has already been installed. I would just leave it in the installer and it would work fine every time. But yes, if you install another app on the same computer with the same version of Crystal you will not need another msi, however, same is a word that will bite you on the rear, even in the .NET world.
|
|
|
|
|
Hi
I'm working with Mono.Cecil for IL Manipulation and find some articls like this[^]
but i didn't found any useful article about what's OpCodes and expain each OpCode item.
can anybody help me ?
thanks
|
|
|
|
|
Follow these easy instructions.- Go to http://www.google.com
- Type opcodes site:microsoft.com for your search criteria.
- Click the link entitled "OpCodes (System.Reflection.Emit)
That'll list the opcodes for you.
If you want to know how each works, read Standard ECMA-335[^].
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
|
This sounds like a job for the Specification Pattern[^]. This would let you inject your own logic into a more general method, reducing the need for code duplication.
There's a video presentation here[^], although be warned: JP Boodhoo goes about a million miles per hour and it took me several watchings just to understand that I already knew what he was talking about!
|
|
|
|
|
To whom it may concern,
I have a button onclick event, where I disable the button (setting its enable property to false), have some process which takes some time, and then reenabling the button at the end of the onclick event function. My query is that the onclick event is fired even though the button has been disabled (clicking more than once while the button is still disabled).
The following snippet illustrates the problem. Any solutions are appreciated.
private void button1_Click(object sender, EventArgs e)
{
DateTime d1, d2;
TimeSpan t;
d1 = DateTime.Now;
if (button1.Enabled == false)
return;
button1.Enabled = false;
while (true)
{
d2 = DateTime.Now;
t = d2.Subtract(d1);
if (t.TotalMilliseconds > 2000)
break;
}
label1.Text = (count++).ToString(); // shows the number of times the function has been called (count is a global variable)
label1.Refresh();
button1.Enabled = true;
}
Thanks in advance
|
|
|
|