|
Short of creating a 600DPI image from the 96 DPI version (it's going to be tough figuring out what the other 504 dots per inch actually are), you'd need 2 versions - the 96 DPI for the screen and the 600 DPI for the printer.
|
|
|
|
|
I want Fine Printing From MY Software. How can I Set the Printing DPI same as Screen.
If you can think then I Can.
|
|
|
|
|
I give up. I've told you what the problem is, and you want to ignore me. Fine - ignore the reason that WPF was designed to be resolution independent and the reason that designers work in resolutions other than 96 DPI.
|
|
|
|
|
Can i print BMP to same as Independent Mata File?
If you can think then I Can.
|
|
|
|
|
Check your printer settings - it may be set to draft or similar by default.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
Hey guys,
I've seen a couple apps (client apps, not websites) that enable you to update your twitter, facebook, etc statuses all at once. I'm trying to develop a simple application to share a url from my pc instead of having to go to the website.
Can anyone PLEASE direct me to some tutorial in C#... I've been scouring the net but all I can find are ASP.NET examples :/
Thanks guys.
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
|
|
|
|
|
Then use those examples. The Facebook API isn't going to be any different. You're going to use the same code to talk to Facebook in a WinForms app as you are from an ASP.NET app.
|
|
|
|
|
Hi All,
I am a .Net programmer. I have a few questions regarding programming for Thin Client Machines. I dont have any explosure to thin client machines so i am in need of experts advice on this.
1. Is it possible to program for a Thin Client Machine using .Net technology with language as C#
2. Is there any special option in .net for this
3. Where can i get a sample Thin Client Application / Tutorials using .Net Language
Thanks & Regards
Karthikeyan S
|
|
|
|
|
|
Hi,
Thanks for a quick reply...
Will it be possible to run a windows application on a thin client which is connected to the database in a thin client server.
Will it also support a web applications.
Sorry if my question seems silly as i dont have any exposure to thin clients
Thanks & Regards
Karthikeyan S
|
|
|
|
|
karthi84 wrote: Will it be possible to run a windows application on a thin client which is connected to the database in a thin client server.
Will it also support a web applications.
If it matches or greater than with minimum requirements of application then Yes. But the issue is you can't expect the speed, performance or something using thin client or server in Low H/W configuration. That's all.
thatraja |Chennai|India|
Brainbench certifications Down-votes are like kid's kisses don't reject it Do what you want quickly because the Doomsday on 2012
|
|
|
|
|
thank you for your valuable ideas. Now i got some idea about thin client with this i can run further.
|
|
|
|
|
Thin client doesn’t have any Hard disk. It only connects to a server through Terminal Server Service. It shares all resources of the Terminal Server. So any program you are executing through a thin client actually it has been executed in your server. So if a program executes in your server then that will also be executed at your thin client. Dont worry about it.
|
|
|
|
|
thank you for your valuable ideas. Now i got some idea about thin client with this i can run further.
|
|
|
|
|
Actually some thin clients do come with "hard disk". More like a flash drive... Only about 1gb (depends) which some of it is used for the OS (some come with like Windows XP Embedded, some come with other OS). You can install the .NET Framework and other applications as long as they don't exceed the amount of space. Of course you want to be careful with how much memory you use.
Take a look at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01716415&jumpid=reg_R1002_USEN
It can have up to 2gb flash memory
|
|
|
|
|
"Thin client" can have different connotations, depending on the context and who you're talking to. For example, I do not immediately assume no hard disk when I hear thin client. Just degrees of service. For example wikipedia sez:
"Traditionally, a thin client ran a full operating system for the purposes of connecting to other computers. A newer trend is sometimes called an ultra-thin client or a zero client, which no longer runs a full operating system: the kernel instead merely initializes the network, begins the networking protocol, and handles display of the server's output."
There is nothing related to .NET or C# that would preclude generic thin client apps. For some, this could be a form of any distributed 2-tier or n-tier system. And certainly .NET has a good framework for that. Communications will have to occur somehow, and .NET supports WCF for example, so I don't know if that's what you mean by "special option".
|
|
|
|
|
I would recommend looking at Silverlight. http://www.silverlight.net. This subset of .Net and WPF can run on a pretty thin client including Macs. It is very restrictive though when it comes to security. You need to get permission from the user if you wish to access things like the file system.
Hope this helps.
Leon Lambert
Leon Lambert
|
|
|
|
|
hello needing help in histogram. i come across this particular website which teaches creation of simple histogram. However i am doing coding in c#. Needing some help in correcting as i am stuck.
ref website:
http://www.ehow.com/how_5868540_create-histogram-using-programming-code.html[^]
code:
int numvalues = 20 ;<br />
int [] values = { -3, 2, -2, 4, 5, 4, 2, 5, 4, 5, -1, 2, 3, 4, 7, 4, 2, 0, 7, -3 } ;<br />
<br />
int i = 0, j =0 ;<br />
int maxval = 0 ;<br />
for (i = 0; i < numvalues; i++)<br />
{<br />
if (values[i] > maxval) maxval = values[i] ;<br />
}<br />
int minval = maxval ;<br />
for (i = 0 ; i < numvalues ; i++) {<br />
if (values[i] < minval) minval = values[i] ;<br />
}<br />
int freqsize = maxval - minval + 1 ;<br />
int[] frequency = new int[freqsize];<br />
for (i = 0 ; i < freqsize ; i++) {<br />
frequency[i] = 0 ;<br />
}<br />
<br />
for (i = 0 ; i < numvalues ; i++) {<br />
int index = values[i] - minval ;<br />
frequency[index]++ ;<br />
}<br />
<br />
for (i = 1 ; i <= freqsize ; i++) {<br />
label1.Text= i + minval.ToString();<br />
for(j = 0; j < frequency[i] ; j++) {<br />
label1.Text = "*";<br />
}<br />
label1.Text = ("\n");<br />
}<br />
for the last for loop, i am unsure if i did it correctly. i am suppose to get the output as the ref website.
|
|
|
|
|
A quick look says that this:
label1.Text = "*";
should be:
label1.Text = label1.Text + "*";
And
label1.Text = ("\n")
should be:
label1.Text = label1.Text + ("\n")
You need to append the * and \n characters to the existing text - your code just replaces the text with single * at each iteration, then replaces it with \n.
One other point, when posting code use the 'code block' to get highlight it and retain the formatting (i.e. indents).
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
noted, thanks for the reply. i got this error when i run which is "Index was outside the bounds of the array." May i know whats the problem if you know it?
|
|
|
|
|
In the last loop i goes from 1 to freqsize, but the array index goes from 0 to freqsize-1.
(It's declared as: int freqsize = maxval - minval + 1 .
Try stepping through the code with the debugger to see what is happening - often helpful when trying to understand the code or solve problems.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
Yes, you're right you made a few mistakes in the last loop. It wasn't particularly clear in your example as that was c++ using prontf, and you're trying to write to a label. See blow for corrections.
for (i = 1; i <= freqsize; i++)
{
label1.Text += (i + minval).ToString() + " | ";
for (j = 0; j < frequency[i]; j++)
{
label1.Text += "*";
}
label1.Text += ("\n");
}
|
|
|
|
|
thanks for the replies.
i have made changes to the code however still facing problem i dont get the output and there is still this error "Index was outside the bounds of the array." when the last loop is being executed.
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
int numvalues = 20 ;<br />
int [] values = { -3, 2, -2, 4, 5, 4, 2, 5, 4, 5, -1, 2, 3, 4, 7, 4, 2, 0, 7, -3 } ;<br />
<br />
int i = 0;<br />
int maxval = 0 ;<br />
for (i = 0; i < numvalues; i++)<br />
{<br />
if (values[i] > maxval) <br />
maxval = values[i] ;<br />
}<br />
int minval = maxval ;<br />
for (i = 0 ; i < numvalues ; i++) {<br />
if (values[i] < minval) <br />
minval = values[i] ;<br />
}<br />
int freqsize = maxval - minval + 1 ;<br />
int[] frequency = new int[freqsize];<br />
for (i = 0 ; i < freqsize ; i++) {<br />
frequency[i] = 0 ;<br />
}<br />
<br />
for (i = 0 ; i < numvalues ; i++) {<br />
int index = values[i] - minval ;<br />
frequency[index]++ ;<br />
}<br />
<br />
for (i = 1; i <= freqsize; i++)<br />
{<br />
label1.Text += (i + minval).ToString() + " | ";<br />
for (int j = 0; j < frequency[i]; j++)<br />
{<br />
label1.Text += "*";<br />
}<br />
label1.Text += ("\n");<br />
}<br />
<br />
<br />
}
|
|
|
|
|
I feel like I'm helping someone do his homework...
Take a look at your last loop around freqsize and see if you find anything suspicious...
Also, if you cannot see it, throw it in the debugger and you'll find the issue pretty quickly, maybe you can step through the code. Try using a values array with 0 numbers, 1 number, 2 numbers.
|
|
|
|
|
i got it right alrdy. thanks.
|
|
|
|