|
try to make a panel and put the ControlCollection "Controls" from the Form into the panel and set the Panel "AutoSize" and make from the Panel the Screenshot...
i don't know if it works, but that would be my first try to solve this.
|
|
|
|
|
hey ppl! Any freeware source code for bmp to jpeg image converter??. Thx ahead
|
|
|
|
|
Err... kinda. I'm pretty sure that if you open an image, you can then call the save method, and choose the format you want.
Bitmap myImage = new Bitmap("myImage.bmp");<br />
myImage.Save(...);
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Image image = Image.FromFile(@"d:\test.jpg");
image.Save(@"d:\test.bmp", ImageFormat.Bmp);
|
|
|
|
|
Can any one give an ideal but beginner example of Web Services
|
|
|
|
|
Before posting your question you should had done 2 things
1. searched google.
2. Posted in correct forum i.e asp.net
click here[^]
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Hi,
I have a reference to Interop.PRNADMINLib
I would like to run the code on the print server i.e (myServer) and pickup the installed printers i.e. (printer1) and install this printer on machineB on the network. So machineB will have this in it's printer's list i.e. \\myServer\printer1
Question:
The following code installs the printer on the remote machine but I would like it to point to the print server and not directly connect to the printer itself.
For example, after running the below code you will see the printer1 in the printers list on machineB but I would like it to show \\myServer\printer1
instead of just printer1
How can this code be modified to achieve my goal please?
The code I am using:
PRNADMINLib.Printer p = new PRNADMINLib.Printer();
PRNADMINLib.PrintMaster pm = new PRNADMINLib.PrintMaster();
p.ServerName = "\\\\machineB";
p.PrinterName = "printer1";
pm.PrinterAdd(p);
Any thoughts please?
Thanks
modified on Monday, September 8, 2008 5:52 AM
|
|
|
|
|
Hi All,
I have a button on page.
when user click this button it will call a server side function, which check some data in database. then there will be confirmation message like "Record already exist, Do you want to continue?". if user click (OK)Yes then it will process further in database using another server side function. otherwise it will not process further.
Please tell me how can I do this using javascript ?
I need to show confirmation message.
Thanks.
Regards,
Sunil
|
|
|
|
|
This is not ASP.Net Forum.
Have a look at how RegisterClientScriptBlock [^]works..
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I have 25 text files, each file have half million of records , my job is to read from text file and create database and write all the records on fly.
So which is the fastest method, so that i write quickly to the db.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Is that comma separated values? Use DTS in SQL server to transfer those to DB.
|
|
|
|
|
No its not comma separated, actually all these i have to do programmaticly.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
N a v a n e e t h wrote: Use DTS in SQL server
Doesn't exist any more. Its sucessor is called SSIS (Sql Server Integration Service)
|
|
|
|
|
Thanks. Good to learn from you
|
|
|
|
|
Mogaambo wrote: each file have half million of records
I dont think you're going to find any particularly fast way, but the only option you have is to open each file, read its contents, and write whatever bits of it you want to the db.
|
|
|
|
|
Use streams. I usually prefer StreamReader.
DON'T use the static methods of the 'File' class. They are orders of magnitude slower than streams. To verify that just write a small benchmark app using a System.Diagnostics.Stopwatch to test the speed of various methods.
|
|
|
|
|
Mogaambo wrote:
So which is the fastest method, so that i write quickly to the db.
Find a big fly
|
|
|
|
|
It will stay pretty slow, but what you could do is: if a query fails, log it.
that way you can do those manually if necessary (after finding the error ).
|
|
|
|
|
If these files have an identifiable structure, and don't require lots of complicated transformations, you could always bulk import them using bcp (I'm taking a flyer here that you are using SQL Server), and a format file[^] to constrain what goes where.
|
|
|
|
|
Is Sqlbulkcopy is the feasible solution ??????
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Depending on the format of your files, yes. If your file doesn't have the data you need split over multiple lines, then it's extremely feasible.
|
|
|
|
|
+1 To BULK copy and format files.
|
|
|
|
|
We have this exact situation and use a combination of Bulkcopy for foxpro files and BCP for the text files. As Pete said you must have a consistent file structure.
We have one situation where the file structure changes, in this case we read in the first line of the text file, pass that string to a stored procedure which drops and creates the target table if the structure has changed. We then use BulkCopy to load the table. Caveat - make ALL your target fields varchar and do your transforms using the stored procedure called AFTER the bulkcopy.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: make ALL your target fields varchar and do your transforms using the stored procedure called AFTER the bulkcopy
Pretty much what I do too. I have a "raw" version of the table that's all varchar and a trigger to convert and move the data on to where it needs to be.
|
|
|
|
|
PIEBALDconsult wrote: and a trigger to convert and move the data
You will not find a single trigger in any database I have ever been resposible for, hate the bloody things. I remember the first time I ran across them, spent 2 days trying to find out why a process failed when I wasn't anywhere near the table that caused the error - bloody triggers
Never underestimate the power of human stupidity
RAH
|
|
|
|