isn't there a property called 'enable' or something like that for the grid. Basically u want the first two columns read only? i'm pretty sure that u can set that in the grid's property. *HyVong*
HyVong
Posts
-
Data Grid columns -
Dynamic Image on Crystal ReportHello everyone, I'm looking for a way to be able to display a dynamic image on a crystal report. I don't have the image stored the DB, only have the path to the image. *HyVong*
-
How to ... in Crystal Report 9?hello everyone, just wondering if anyone knows how to set a report with double columns, for example below the numbers represent the lines ------------------------------------ 1. field1 field 2 | 6. field1 field2 2. field1 field 2 | 7. field1 field2 3. field1 field 2 | 8. field1 field2 4. field1 field 2 | 9. field1 field2 5. field1 field 2 | .... field1 field2 it's like in MS word where you have two columns. is there some settings that i have to do, or how can i achieve this, please help i'm passing data into report by table in a dataset. sitting here waiting for someone to reply.:sigh: *HyVong*
-
C# - How to Zip file on the Web Server?it workssssssss yeeeeaaaahhhh :) thank you so much for all your help every one :) cheersssssss!! *HyVong*
-
C# - How to Zip file on the Web Server?actually i got this work, thank you so much for all your help i changed to
System.IO.File.Delete(Server.MapPath(@"~\import\\" + soureFileName));
and the file did got zip, i gave it a path for specific folder// Stream with source file
FileInputStream fis = new FileInputStream(Server.MapPath(@"~\import\\" + soureFileName));
// Output stream
FileOutputStream fos = new FileOutputStream(Server.MapPath(@"~\import\\" + zipFileName));
// Tie to zip stream
ZipOutputStream zos = new ZipOutputStream(fos);once again, thank you for all your help :) *HyVong*
-
C# - How to Zip file on the Web Server?using java.util.zip; using java.io; .. .. i created method to zip the file based on the codes have given.
private void ZipFile(string fileName, string ExpType) { string extType = "zip"; string zipFileName = fileName + "." + extType; string soureFileName = fileName + "." + ExpType; // Output stream // ONCE IT RUNS THIS LINE, IT GIVES ME THE ERROR // SAYS 'ACCESS IS DENIED.' FileOutputStream fos = new FileOutputStream(zipFileName); // Tie to zip stream ZipOutputStream zos = new ZipOutputStream(fos); // Stream with source file FileInputStream fis = new FileInputStream(soureFileName); // It's our entry in zip ZipEntry ze = new ZipEntry(soureFileName); zos.putNextEntry(ze); sbyte[] buffer = new sbyte[1024]; int len; // Read and write until done while((len = fis.read(buffer)) >= 0) { zos.write(buffer, 0, len); } // Close everything zos.closeEntry(); fis.close(); zos.close(); fos.close(); }
I have the folder that held the file temporary has full access for users. I don't know if i have to give the path for it to be able to zip too? Please help, i have no clue why it says access is denied. And is the code above correct? I haven't had a chance to test the whole codes since the first line had some error. hope to hear from everyone soon. thank you so much.:( *HyVong* oh and when i tried to delete the file after it's being zipped, but i can't, 'File' is an ambiguous reference, how do i delete the file after being zipped? File.Delete(Server.MapPath(@"~\import\\" + soureFileName)); Thanx so much for all your help. -
C# - How to Zip file on the Web Server?Salut everyone, i have done lotz of seaching but i haven't find much. Anyhelp is greatly appreciate. I export a report into a csv file onto the webserver folder, now what i would like to do is zip that file that i just saved and allow the user to download it when they click a button. Anyone know what class .NET support for zipping a file? or any sample code on C# is great because i'm stuck here. merci beaucoup :);) *HyVong*
-
How to Export to CSV file from DataSet?Hi everyone, I'm trying to export into a csv file from the dataset. But i'm not using Button. I'm asking the user to check on the check box if they want to export the file. If they checked that checkbox, as i go through the form and grab data through my sql statement (and the data are now in the dataset, with two table, but i only want to export one table), at the end i would like to send those data to the csv file. And i have done some research but couldn't find much on what I'm doing. Does any one have any C# sample code links or give some suggestion in the coding, i'll be very appriciated. This is totally new to me, so i'm asking for everyone's help. Thanks in advance for your time. Cheers!:-D *HyVong*
-
CSV file to new datatable in c#?actually, i found the error :) reader = new System.IO.StreamReader(fs); :-D *HyVong*
-
CSV file to new datatable in c#?thanx, i actually used a method to read the file, but i have this problem, and i don't know what are the posibilies can cause this. FileStream fs = new FileStream(Server.MapPath(servFileName), FileMode.Open,FileAccess.Read); StreamReader reader = new System.IO.StreamReader(fs); try { //servFileName is the variable carry my file name reader = new System.IO.StreamReader(servFileName); while reader.ReadLine() != null) { //pass the row to the datatable } } catch {} *** the problem is it never goes to the WHILE loop, and i don't what the line above it causes the error. Anyone has any idea, please help. :( *HyVong*
-
how to query a dataset?i think you have to make a dataview. *HyVong*
-
CSV file to new datatable in c#?Help! asap, i'm uploading a csv file, that use comma as delimiter, and now how do i put the file into a new datatable? and csv/datatable file will be displayed on a grid. Any one has C# code sample will be greatly appreciate. Anyone...?:( *HyVong*
-
C# Open Dialog Boxb/c i'm using asp.net, it doesn't work the way i thought , so i had to use javascript instead, now i have to figure out how to upload the file on the server and put that file onto the dataset....any suggestion anyone? *HyVong*
-
C# Open Dialog Boxthank you, but if i'm that smart i wouldn't write this message today :) I'm learning as i'm doing it, hopefully i'll get this project works. thanks again. *HyVong*
-
C# Open Dialog BoxThank you very much, though i did go through the help search but i don't have much experience in the field as a student, that's why i'm seeking for help. Thank you. *HyVong*
-
C# Open Dialog BoxHi Everyone, this is my first time here and wonder if anyone out there can help me. I'm using VS.net 2003, and trying to display an "Open Dialog Box" on form MyForm.aspx. On MyForm.aspx, there is one button called "Browse", what i would like is that when the user click on the "Browse" button, the open dialog box pops up and allow user to select a *.csv file from any directory user choose to. It's like upload a file up on the sql server. If anyone have an example or give me a tour through the codes would be great, b/c I have never done anything like this before. Many thanx ;) *HyVong*