|
Hi i want to access exchane server services through .NET ,
Does it have some object model sort
please guide
P.S. PATWAL
|
|
|
|
|
You can use CDO 1.21 (the COM wrappers for MAPI), but you'll need a lot of workarounds if you have to access task items.
|
|
|
|
|
Hi.
My quest is how to sort fields hierarchical in a Crystal Report from within my c#-application.
I know the way how to sort one field (by DatabaseFieldDefintion and SortField ), but what is about multiple sorting fields in a hierarchy? How to tell the ReportDocument, that there are more sorting fields than only one and how to define more than one fields? How to get them to the DatabaseFieldDefinitons-collection? I havent't found an adequate answer yet.
Here's the code for one sorting field:
DatabaseFieldDefinition _dbFieldDef = repDoc.Database.Tables["EXAMPLE"].Fields["EXAMPLE_NO"];<br />
SortField _sortField = repDoc.DataDefinition.SortFields[0];<br />
_sortField.Field = _dbFieldDef;
Additional Info: I'm developing with VS 2003, C# and Crystal Reports 9 (not CR for .Net).
T. Labenche
|
|
|
|
|
You can set up hierarchical sorting when you define the report definition using their wizard. If your report definition is already created, you can customize the groupings and select multiple sort fields, ordered by precendence ascending. You can also accomplish this using nested groups each with their own sorting.
If you're trying to do this through code, see the documentation for the DataDefinition.SortFields collection/array property. I'm betting you could probably add addition SortField s to it.
Other than that, see the Crystal Reports web site for CR-specific documentation, which should also be included with the product.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi all
Does anyone know how I can play .ra files and other multimedia files using C#
Thanks for help!
Medhat Ramses
|
|
|
|
|
I haven't search CP to see anything exist but in addition to that you can import Windows Media Player ActiveX in your project and use it.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
.ra is RealCrap...er, RealPlayer. Windows Media Player can't play RealAudio streams.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Heath Stewart wrote:
RealPlayer.
Does realplayer have has any activex or library?
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
Yes. It's often embedded into web pages just like Windows Media Player. You can use this in Windows Forms applications as well.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
RealAudio streams use a proprietary format and require that you have an ActiveX control to play them. RealPlayer has an ActiveX control that you typically find in web pages. If you right-click on the Toolbox in VS.NET and customize, you should see the RealPlayer ActiveX control (or something like that) if you have it installed. When you deploy your application, you must make sure that the clients have RealPlayer installed and that you also ship the interop assemblies that are created when you create the RCW (runtime callable wrapper) for RealPlayer.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
For my application i am generating reports in excel. I am writing the records to a text file and applying the formatting to that and then saving it has excel file. I want to create a new worksheet once the maximum no. of rows reached in an excel worksheet. How to go abt that? pls suggest me a way
|
|
|
|
|
Hi..
As of now most of the examples ,I have encountered on distributed apps,
The server side sends asyncronous notifications to all the clients that have hooked up to the server.
for example in a tyical publish-subscribe example ,say 5 clients
have registered thier callbacks with server and whenever the server gets a magzine detail ,it sends out the info and all the clients get it..That's perfect..
I wanted to build an application wherin the server sends asyncronous messages only to a specific client by identifying the client's credentials when it had first connected to the server .
is it possible...?[Like in a conventional chat application.]
God Is Great
|
|
|
|
|
For every connected client a new Socket object is created. You can store the Sockets in a Hashtable, with some client information as the key. Then you can pick specific Sockets from the Hashtable and send messages only to these clients.
I don't have an example in C#, but if you know Java, try this one (Version 3.1 or lower):
http://cocoswelt.online.de/beginners/english/JavaChat/indexChat.html[^]
|
|
|
|
|
Let me just remind everyone that this guy is a scumbag and his site links to others where people keep illegal copies of current books. Before you rush off to get some books for free, ask yourself if you think it's Ok to steal a car. Is it OK for someone to steal your computer ? What's the difference ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
anybody know how to do tic tac toe games using look ahead function?
|
|
|
|
|
To discuss the look-ahead functions in any game would require quite an indepth discussion on queue theory. This is the fundamental basis for all look-ahead processes since the management of queue depth (how far ahead I look), the evaluation of each queue value (how heavily weighted should a given queue be given to determine best move), and finally queue tie-breaker resolution (two best moves are equal).
I would begin by searching for articles and/or books on either queue theory or architectural implementations of chess. You are more likely to get queue theory searching for chess instead of tic-tac-toe --- but then apply that to your example.
Your approach, however, is a fine way to approach it. Start with something very simple that can do the basics listed above....then try to ramp it up to something far more complex.
BTW--I don't know how widely known this is...but the basics of queue theory that were deployed in BigBlue (the chess game) was the prototype research for improving queue process within MVS.
_____________________________________________
Of all the senses I could possibly lose, It is most often the one called 'common' that gets lost.
|
|
|
|
|
Hi, all!
I want to allow users to change current UI language dynamically (with no application restart). How can I do that when I have already creted MainForm in my C# application? Do I need to recreate it completely?
Thanks.
Regards,
alexx.
|
|
|
|
|
I think it does not matter. All applications use technic with restart after change UI language... So I'll do the same
|
|
|
|
|
Call InitializeComponent() again but it could be dirty way.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
You have to change the current UI culture by assigning a new CultureInfo to Thread.CurrentUICulture and then re-initialize your controls. You should not, however, call InitializeComponents again because that instantiates and re-adds the controls (so you'll get duplicates) to your container. This means that you'll have to break the designer and move all the property assignments out of that method (or better yet, just pull that method apartment into separate calls to instantiate and add, and to assign properties). This is not very common in applications, however. Most applications - especially larger, more complex applications - require a restart.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
i just started learning c++ so it may just be a noob question but i am haveing a problem. I am trying to make a prog that writes names and number to notepad. When i run it it write the names and number but on top of it it has a set of numbers (1245068) and that will happen everytime.
Example:
1245068
John
Doe
5678906
Jaine
Doe
23456789
That is what is on notepad. My question is what i am doing wrong to get that set of number and how to just write the first name then last name then number. If anyone could help it would be appreciated. my code is bellow.
#include<stdlib.h>
#include<iostream.h>
#include<fstream.h>
int main(int argc, char* argv[])
{
int x=0, y=0;
string L_Name[100];
string F_Name[100];
int number[100];
char resp;
//Reads if there is already info in there and puts it into array
ifstream read("File.txt");
while(!read.eof())
{
read >>F_Name[x] >>L_Name[x] >>number[x];
x++;
}
read.close();
//Where the user can enter more name
do
{
cout <<"First Name: ";
cin >>F_Name[x];
cout <<"Last Name: ";
cin >>L_Name[x];
cout <<"Number: ";
cin >>number[x];
x++;
cout <<"Would you like to enter another name?(y/n)";
cin >>resp;
}
while((resp=='y')||(resp=='Y'));
y=x;
//writes the origianl names then the new name but here is where i get the
//set of numbers
ofstream write("File.txt");
for(x=0; x<y; x++)
{
write <<F_Name[x] <<endl;
write <<L_Name[x] <<endl;
write <<number[x] <<endl;
}
return 0;
}
|
|
|
|
|
|
Damn, C++ is ugly! All those >> and << make me woozy!
|
|
|
|
|
Anyone know of a reasonably fast grid control for .NET - e.g. something like Stingray for MFC. It just seems that the one thing .NET does badly is good performance on grid controls, or anything thats graphics intensive. Some of them look great, but put more than 50 rows and they crawl when you scroll.
Looking for something that is responsive enought to handle realtime data - not huge amounts of it but to be responsive when it does get it.
From what I can tell the double buffred drawing built into the Windows Forms Control is not as optimised as it could be.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table.
Shameless Plug - Distributed Database Transactions in .NET using COM+
|
|
|
|
|
http://www.janusys.com/janus/library/
|
|
|
|