|
This link[^] should give you a good starting point.
|
|
|
|
|
How do we find Eigen vector and Eigen values of an image in C#.net?
Vicky
|
|
|
|
|
1st transform the image into a matrix
2nd use some math library to get the eigen value/vector of the matrix
|
|
|
|
|
Hi all
I create a variable in Crystal report(formula editor) , for example :
numberVar MyNumber;
if MyNumber=10 then {TestReport.firstname} = {?myfirstname}
I want to use this variable(MyNumber)in Form1.cs(using c#.net).
How can do it , ? if not , what's the best way to passing this variable into the My Form.
Thanks
s_mostafa_h
|
|
|
|
|
Yes, there are actually several ways to get to Rome... Oh, you mean something else...you might want to read point 3 in the post "How to get an answer to you question" pinned as the first post in this forum.
|
|
|
|
|
if u are angry , it's better for u to rest and relax ... .
s_mostafa_h
|
|
|
|
|
I am not angry, just using sarcasm.
Basically there are two reasons to use a decent subject:
1) It increase the likelyhood of the people reading your question are actually the people able to answer it - instead of just a random selection.
2) The forum becomes useless if all subjets simply says "how do i...", "help with..." etc. This means less users and hence fewer answers.
So for your own sake - and for the rest of us - please do not write meaningless subjects.
|
|
|
|
|
ofcourse , u are right ,
but actually , I searched in anywhere to solving my problem .
in any case , if u are a developer , it's better to guide us for ur explaining .
Yours ,
s_mostafa_h
|
|
|
|
|
I am a developer, but I do not know Crystal Reports (and prefer to keep it that way). I did guide you by suggesting you post in a way so people with the required knowledge MIGHT look at your post.
|
|
|
|
|
it's better to forgot it ...
s_mostafa_h
|
|
|
|
|
Hi Friends
This is Sriram working as a Software Engg in Chennai.
I have a requirement that has to access the VSS database.
The functionality must do what ever can be done using VSS client such as Checking out a specific folder or file, Checking in or getting the latest version of a specific folder by the specified user.
All these operations have to be performed through my C# code.
Do any one of u have done such a process or have any idea about it or is there any DLL's available to accomplish this task.
Waiting for the replies
|
|
|
|
|
There is a COM interface as far as I remember. I have for example seen a web interface based on this.
|
|
|
|
|
|
Hi Friends
I have used SourceSafeTypeLib dll in Win32 folder to open a connection with VSS database and get the Latest of the file required.
But i am not aware of how to do the Check Out and Check in Process in using C#.
The code that i have used to Get the Latest version of the file is
IVSSDatabase m_DB;
string m_username;
ArrayList m_FileDetails = new ArrayList();
ArrayList m_UniqueFileDetails = new ArrayList();
string[] m_strPaths = new string[100];
int m_index = 0;
string result = Connect(@"C:\Documents and Settings\admin\My Documents\SampleDatabase\srcsafe.ini","pvs","pvs");
if(result=="Connected")
{
string result1 = GetLatest(@"$\Sample\Requirements\SRS",@"C:\Sample1\Requirements\SRS","pvs");
if(result1== "Completed")
{
MessageBox.Show("Successfully completed the task");
}
else if(result1 == "IVSSDatabase is null")
{
MessageBox.Show("Error while Getting the Latest");
}
}
else
{
MessageBox.Show("Cannot Establish Connection to Database Specified");
}
}
catch(Exception ex)
{
MessageBox.Show("Exception Raised");
MessageBox.Show(ex.ToString());
}
}
public string Connect(string databasePath, string username, string password)
{
m_DB = new VSSDatabaseClass();
try
{
m_DB.Open(databasePath,username,password);
}
catch(System.Runtime.InteropServices.COMException ex)
{
return ex.Message.ToString();
}
catch(Exception ex)
{
return ex.Message.ToString();
}
return "Connected";
}
public string GetLatest( string path, string localpath,string username )
{
m_username = username;
m_FileDetails.RemoveRange( 0, m_FileDetails.Count );
m_UniqueFileDetails.RemoveRange( 0, m_UniqueFileDetails.Count );
string strResult = "IVSSDatabase is null";
if( m_DB != null )
{
IVSSItem vitem = m_DB.get_VSSItem( path, false );
GetItems( path, localpath, vitem );
strResult = "Completed";
}
m_index = 0;
return strResult;
}
public void GetItems( string path, string localpath, IVSSItem item )
{
string temp = localpath;
if( item.Type == 1 ) // ignore if not project
{
}
else
{
IVSSItems ppItems;
ppItems = item.get_Items( false );
string strProj = item.Name;
foreach( IVSSItem childItem in ppItems )
{
localpath = temp;
string strUniquePath = localpath;
//m_index = 0;
string strname = childItem.Name;
string strPath = GetPaths( childItem );
string strC = strPath;
strC += "\\";
strC += strname;
localpath += strC;
string strLocalPath = localpath;
m_username = m_username.Replace(" ","");
strUniquePath += m_username;
strUniquePath += "\\";
strUniquePath += strC;
childItem.Get( ref strUniquePath, 0 ); // store as
// unique path
localpath = temp;
m_FileDetails.Add( strLocalPath );
m_UniqueFileDetails.Add( strUniquePath );
GetItems( path, localpath, childItem );
}
}
}
public string GetPaths( IVSSItem pItem )
{
string b;
string cStr = "";
IVSSItem pParent = pItem.Parent;
if( pParent != null )
{
b = pParent.Name;
if( b.Length > 0 )
{
cStr += b;
m_strPaths[m_index] = cStr;
m_index++;
GetPaths( pParent );
}
}
string strPath = "";
for( int i = m_index; i > 0; i -- )
{
strPath += "\\";
strPath += m_strPaths[ i - 1 ];
}
return strPath;
}
The above code snippet will get the latest from the VSS and creates the same folder structure as in VSS in a seperate path with user name added to the Folder Name in the Server itself from where the Files can be read and placed in the Clients machine. it works fine.
But i need to do a Check Out and Check in operation from VSS.
Do any of u aware of this operation using C#. Do post replies
Sriram
|
|
|
|
|
Isn't it just a question of finding the methods for check in and check out in the SourceSafe automation model and calling them? Or is it that you've looked and it's not obvious how to access them?
Kevin
|
|
|
|
|
I've looked at the methods in the SourceSafe automation model. I had some problem in accessing it while doing the Checkout and CheckIn process.
When i do the checkout i check for the file attribute to be readonly. While using the Checkout method by default the version in the VSS is updated in the local machine. I want to set a flag to control that operation. That is what the problem that i had
But now i have used the VSSFlag enum to control this.
Thanks for ur interest Kevin
Will post if i encounter any serious problem by doing it
Sriram
|
|
|
|
|
Hi Sreram,
when i tried this code i am facing the problem of {System.Runtime.InteropServices.ExternalException} = {"Invalid DOS path: D:\\Projects\\Test_Msbuild\\MSBUILD\\data\\um.dat"}
Do you have any idea how to solve this problem?
Thanks
Priya
km@ciber.com
|
|
|
|
|
I have some code which looks like this:
public class EnformaCubeUser : EnformaUser
{
EnformaCubeUser(System.Security.Principal.IPrincipal User)
{
base.New(User.Identity.Name);
}
}
Given that I know whether I am enforma or enforma-nx, as described in the initial comment, is there a way of changing the inheritance relationship of the EnformaCubeUser class according to the commented out lines using some devious reflection technique? (I am not permitted to modify the EnformaUser and EnformaPassport classes.)
Kevin
|
|
|
|
|
Actually, as things stand I could just compose references to EnformaUser and EnformaPassport and then decide which to instantiate. So simple! - unless I intend to re-use other functionality from these classes.
Still, I'm curious as to whether there's a solution to the original question.
Kevin
|
|
|
|
|
Can a datagrid row be scrollable- if the length of the row exceeds the datagrid length can we make that row srollable. if so .how please send me the code.
thank u
Uma
|
|
|
|
|
Hi Guys howz it?
hmmm I'm still a newbie pls help,I have been given a task to write a class which will be used to send emails and sms,I 've no Idea where to start,I tried to google just get working application but I dont understand some of the concepts,pls help.
Thanks.
|
|
|
|
|
Hello
Since you're new as you say, you must first know that reposting your question 3 mins apart is very rude in CP. Please delete your earlier post before you get fried by others.
To your issue, Sending mails through C# will need an SMPT server to send through, and you'd use the System.Net.Mail namespace. Check it in your MSDN
On the other hand sending sms would be similar yet a little more complicated. There are articles in CodeProject about it, and the portal is http://www.messagevista.com[^]
Search Code Project for "sms" ands "email". If you didn't come up with anything, come back. Making things too easy sometimes is not for your benefit.
Regards
|
|
|
|
|
Can't you just do email to sms?
Send an email to X@vtext.com where X is a Verizon cell phone number and it will be delivered as an SMS to the phone. There are similar email addresses for Sprint, Cingular, and T-Mobile. Probably for companies not in America as well. Just remember that you are limited to 160 characters.
|
|
|
|
|
How can some message be passed between window service and desktop application?
1. from service to desktop application. (am interested here most)
2. from desktop to service
|
|
|
|
|
Hi there,
My problem is that when my app executes the following code :
private void AddImageToList(string file)<br />
{<br />
this.image = Image.FromFile(file); <br />
this.thumbnailImage = this.image.GetThumbnailImage(100, 100, new Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);<br />
thumbnailImage.Tag = file;<br />
this.imageList.Add(this.thumbnailImage); <br />
}
..my program freezes and it takes 10-15 secs to continue, also when I use these thumbnails again performance reduces dramatically..
Is there anything I can do to increase my performance?
P.S: generally images I wish to load into thumbnails are ~500kb to 1.5Mb
.:: Something is Wrong ::.
|
|
|
|