|
as u r still studying and. i hope that u do most of your course projects in native C or VC or in java..
so C# is more like the above
and it is more popular than vb so i suggest u to stick with c#
|
|
|
|
|
Thanks..
Iam now be very clear to use c# after thier suggestion ...
Thanks very match again..
|
|
|
|
|
Hi,
How can I connect a network printer to a user session via C#???
For example:
I want to connect "\\intranet\phaser" to my current user session and show up as a network-based printer in my local Printers and Faxes folder.
Chris
|
|
|
|
|
You should add the printer to your local
|
|
|
|
|
|
Thanks, but I got it. Here is what I did:
[DllImport("winspool.drv")]
public static extern bool AddPrinterConnection(string pName);
[DllImport("winspool.drv")]
public static extern bool SetDefaultPrinter(string printerName);
bool result = AddPrinterConnection(@"\\server\printer");
bool resultdef = SetDefaultPrinter(@"\\server\printer");
Chris
|
|
|
|
|
anychance you can explain how you managed to add a printer connection to a remote computer ?
|
|
|
|
|
Hi Chris,
Thanks for the post! It worked for me.
Just had to add namespace System.Runtime.InteropServices for DllImport i.e. using System.Runtime.InteropServices;
Thanks again.
Pallavi
|
|
|
|
|
Am getting really tired searching this.
Can somebody help me with this?
What needs to be done is the editable gridview. on
GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
dsGrid = (DataSet)Cache["MyGrid"]; [dsGrid is populated with the grid before update]
}
I want to get the newVal when it is entered into the dataset and finally update the entire dataset by passing it to a stored proc.
Am not able to find the newVal and oldVal. I have gone thru msdn and there are Ordereddictionary, oldVal, newVal, key. All of these give me null values.
If you have any other suggestion, please help. I dont want to update row by row opening connection to the db everytime.
Any good suggestion is welcome.
Thanks
|
|
|
|
|
e.RowIndex itself is returning 0
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
e.RowIndex returns 0 in this function.
Am I missing out something? Please help
|
|
|
|
|
if u r using a template column,then u can use findcontrol to get the value.
Regards
Bino
http://www.codepal.co.nr
|
|
|
|
|
How do I save Image with a different resolution?
I am using Image.Save(...)
I think it might have to do with Image.PropertyItems and using SetPropertieItem, but I am only finding info on id, length, value, and type.
|
|
|
|
|
|
I tried this...
Bitmap b = new Bitmap(currentImage);
b.SetResolution(150, 150);
b.Save(saveImageDialog.FileName, System.Drawing.Imaging.ImageFormat.Tiff);
and it didn't work, but I don't know why.
I will look at the size converter class. Thanks.
|
|
|
|
|
aei_totten wrote: I tried this...
Bitmap b = new Bitmap(currentImage);
b.SetResolution(150, 150);
b.Save(saveImageDialog.FileName, System.Drawing.Imaging.ImageFormat.Tiff);
and it didn't work, but I don't know why.
I think that it worked just fine, but it didn't do what you throught that it would do. The SetResolution method does set the resolution of the image, but what you want to do is to change the size of the image.
Create a new Bitmap object with the size that you want. Create a Graphics object for that bitmap using the Graphics.FromImage method. Use the DrawImage method to draw your image onto the bitmap with the desired size.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
Well - I would tend to use Xslt and Xml to generate this report. That's the beauty of Xsl templates.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Ok, this problem involves C#, some web hosting knowledge, and a bit of ingenuity. basicly (and this probably sounds mad) i'm trying to write a chat program, but ive only got free hosting which only allows http access. i dont have a webserver and i dont want to pay for hosting. so i want something that basicaly can connect to a server via http (or ftp), write to and/or read from a file, and process it to turn it into messages.
solve that one!!!!
by the way frixoft is my freeware distribution website
http://www.frixoft.uk.tp (free domain, i know
|
|
|
|
|
frixoft wrote: solve that one!!!!
So - you want us to solve a technically "challenging" problem for you and give you the code. Are you sure you know how this site works?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Ermmm....No!
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days
|
|
|
|
|
Hi all!
I want to ask how i can burn a CD/DVD in C#, there are any library or API for this??
Thanks a lot...
Bye...
|
|
|
|
|
|
Here are some more links:
http://www.vbaccelerator.com/home/NET/Code/Libraries/Writing_CDs/IMAPI/article.asp
http://www.vbaccelerator.com/home/NET/Code/Libraries/Writing_CDs/Writing_Data_CDs/article.asp
http://www.bayden.com/delphi/cdburner.htm
|
|
|
|
|
i got a url in a variable called "rptUrl.appURL".
value of rptUrl.appURL is https://www.microsoft.com/app/report_data.csv
This csv file i want to save to a local folder...
How can i do using C# code?.
|
|
|
|
|
Use the DownloadFile method in the WebClient class to request the data and save it as a file.
---
single minded; short sighted; long gone;
|
|
|
|