|
Seeing as I'm feeling generous, I'll make it easier for you. It's the first one in the results (here[^])
It's not written in C# so there is no C# source code.
If you want to use it from C# you need to learn about Com-Interop. maybe start here[^]. There's also a blog post about it here[^].
Try it. If you get stuck, post what you've done, and what goes wrong, and I'll help you.
Simon
|
|
|
|
|
So I'm building several reports within my application and I wanted to have the functionality that the visual studio report builder gives me. I'm currently using Report Builder v8.0 because I have to construct for the 2.0 framework.
Anyway, here is my problem: I want to do alternating row colors within my table. In the backcolor property I have the function
=iif(RowNumber("DataSet_GetPersonData") Mod 2, "BurlyWood", "White")
If I put this in the backcolor property of the table, the rows inherit only the second color, "white." If I put this in the backcolor property of the row instead, I get the desired look (first row brown, second row white, etc) except the first column doesn't inherit either of the colors. Instead it remains transparent. I've modified the scope several times, using "nothing" and "table 1" instead of "DataSet_GetPersonData" getting the same results each time. What the heck am I doing wrong??
"The shortest distance between two points is under construction"
-Noelie ALtito
|
|
|
|
|
UPDATE:
Turns out when you are developing web applications you should test your product on browsers that don't begin with Mozilla and end in Firefox. Works fine in I.E. I lose.
"The shortest distance between two points is under construction"
-Noelie ALtito
|
|
|
|
|
Hi! I want to write a class for login for the project. I want to know how do i read the username and password from the database. I have a window with two textboxes(username, password) and a submit button.
Thank you
|
|
|
|
|
This page[^] contains the exact information you need...
|
|
|
|
|
You want to Check if the Username and Password Exists in your table, So you can Write a SProc to count the records in the DB and in your class you can have a function that will tell you if the records exists , if it does not , you can return a message to your user that says "invalid Login". Remember dont display to much info, because you might get injected.
Hope this Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi there! How can we get the mimetype of a file without using is extension?
I have a lot of .dat file on a server and I wanna know what is the mimetype of each of them. But all I found is fonction/properties related to the extension of the file! It's a no brainer to know that a .xls is an Excel type file
Anyone has a clue?
Thanks.
|
|
|
|
|
No, there's no way to get the mime type without the extension unless you want to try opening the file and try to read it as if it's a file of the desired mime type.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Additionally to what John said, you need to open the file and check the file header (if existent) against a list of known file headers.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Ok, and how to get the file headers?
|
|
|
|
|
Read the first n bytes (e.g. using the BinaryReader ) and see if they match any known header bytes.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Ok, I tought there was some kinda headers like in HTTP request.
I got a list of "headers", but it's mainly a trial and error method, but it seems to work for some mimetypes...so far
|
|
|
|
|
hi,
i want to add vb.net module in c# code..is it possible?..
if yes..please supply a simple example ...
Thanx.....
|
|
|
|
|
Yes it is. Simply write it and reference it just like a normal reference. Once compiled there is no difference between an assembly original written in vb.net and one written in c#
Simon
|
|
|
|
|
Well its Possible, but you should not use Different version of Visual Studio to do that, but i remember i wanted to use a C# function i created in Visual Studio 2005. So what you can do Complile your Project and reference the DLL in the other Project from your vb.net Project and that should work.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hello everyone,
When using "int", it is always 32-bit? No matter whether we make build option as Any CPU, x86 and x64?
thanks in advance,
George
|
|
|
|
|
If you want a larger (or smaller) integer, use Int64 or Int16 . An int is as big as the compiler defines it to be.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks John,
Answer to my original question is, int is always 32-bit no matther what platform and build option (Any CPU/x86/x64) is used?
regards,
George
|
|
|
|
|
no. visual c++ 1.2 (and turbo pascal) defined an int as 16-bit. Starting with Visual C++ 2.0, an int was 32 bit.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks John,
My context is C#. Any comments or answers to my original question?
regards,
George
|
|
|
|
|
John Simmons / outlaw programmer wrote: An int is as big as the compiler defines it to be
Wrong language John?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, it is C# forum.
regards,
George
|
|
|
|
|
George_George wrote: When using "int", it is always 32-bit?
Yes. In C# an int is always 32 bits.
The keyword int is an alias for the type System.Int32 .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Cool, thanks Guffa!
regards,
George
|
|
|
|
|