|
Have you tried this site or MSDN ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Did you forgot to attach the link for 'this site'?
Meeram395
|
|
|
|
|
raja_raman wrote:
Did you forgot to attach the link for 'this site'?
Christian meant Code Project. If you are on these forums, then you are already here. An article search for datagrids should return some good results
"too much daily WTF for someone..." - Anton Afanasyev
|
|
|
|
|
hellow evry one
i want to make windos forme contain two textbox and i have reportviwer
i want if the user write two dates in the 2 text the reportviwer report the data for the employees between the two dayes
ashrafhakiem
mcsd certefied
|
|
|
|
|
ashraf hakiem wrote: mcsd certefied
OK......
Seems to me like you want a stored proc that generates a report and takes the two dates as parameters ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: ashraf hakiem wrote:
mcsd certefied
.. I'm afraid in a few days, people will start pasting their resumes in the signature area!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
i'm having same problem too. for mine, i don't know how to pass a parameter to the stored procedure since i use different query in my crystal report object.
|
|
|
|
|
THANKS ALOT BUT I DONT NOW HOW I CAN PASS THE PARAMETES FROM STOREDPROSEDUR TO THE REPORT
ASHRAFHAKIEM
|
|
|
|
|
hi ASHRAFHAKIEM
i don't understand either. let's post your question to get help againq
|
|
|
|
|
What report viewer are you talking about ? You would call the stored proc, then pass the resultant data set to the reporting control, I would have thought.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
So after calling the stored proc, how to pass the result to the report control?
Let's clear us more...
Thanks
|
|
|
|
|
HOW CAN I PASS IT TO THE RESULTANT DATASET TO THE REPORTING CONTROL
THANKS
|
|
|
|
|
|
Hi guys
i am using dot net 1.1 , asp.net and datagrid,
and i am also new to this,
the problem is as i have bounded my data grid to datasetobject,
1--
if my data set contains lot of records the row height of the grid is normal but when dataset contains one or tow or few rows the heights of the row of the data grid gets increased and it looks very odd , might be i am unable to find some property ,can any body help me out, thanks in advance
2--
and there is also another problem, i am using data grid with paging enabled and page soze is 20, but the problem is when i click in next page buttown is still remains on the first page, kindly sort out my problems , thanks again
hello
|
|
|
|
|
1 - sounds like you have some CSS setting the height of the table as a whole, and it's stretching to fit
2 - the problem is obviously that the code is wrong, we can't exactly tell you where, without seeing it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
What is a faster way to do this (changing example 255 = 0, 254 = 1, 253 = 2, etc...)
<br />
byte[] buffer = new byte[size];<br />
br.Read(buffer, 0, 5000000);<br />
<br />
for (int i = 0; i < buffer.Length; i++)<br />
{<br />
buffer[i] = byte.Parse((255 - buffer[i]).ToString());<br />
}<br />
<br />
<br />
bw.Write(buffer);<br />
Thank you all
|
|
|
|
|
Why do you need the ToString and the byte.Parse, are they not both doing stuff that is completely superfluous ?
255 ^ buffer[i]
would do it, I'd have thought. ^ == XOR
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks I will try out later and see what happens
|
|
|
|
|
Christian Graus wrote: 255 ^ buffer[i]
would do it, I'd have thought. ^ == XOR
Or using the ^= operator:
buffer[i] ^= 255;
Subtracting the value from 255 gives the same result, only the calculation is done using integers, so you would have to cast the result to byte (I guess that's the intention of the ToString and Parse in the original code):
buffer[i] = (byte)(255 - buffer[i]);
---
single minded; short sighted; long gone;
|
|
|
|
|
well this is what I tried and it worked
buffer[i] = (byte)(255 ^ buffer[i]);
and for some reseon I still have to cast it
and the results are incredibly fast
From about 7 Minutes to a half a minute, on about a 600MB File
Thanks all for your help
(I just started playing around with the Streams)
|
|
|
|
|
This is my results in seconds
^= 31, 28, 27, 26, 29, 27, 25
cast - 28, 25, 25, 25, 26, 25, 26
cast ^ 30, 26, 26, 25, 26, 26, 26
|
|
|
|
|
F16I wrote: br.Read(buffer, 0, 5000000);
Warning! The Read method returns how many bytes that was actually read, and that doesn't have to be all the bytes that are possible to read. You have to get the return value of the call so that you know if you need more calls to read the rest of the file. Just loop until the method returns zero, that means that there are no more bytes to read.
If you use framework 2, you can use the File.ReadAllBytes method to read the entire file.
---
single minded; short sighted; long gone;
|
|
|
|
|
I just put thet in as an example, just wanted to show a long array
|
|
|
|
|
I think that you missed the point.
If you call the Read method without checking what it returns, it may read only part of the file without you realising it, and you will merrily continue, believing that the entire file is in the array while in fact part of the data is just garbage.
---
single minded; short sighted; long gone;
|
|
|
|
|
I know, (it is inside a for loop) and by the way I am not trying to XOR the whole file, but anyway "thanks vary much for your help"
|
|
|
|