|
Hello
I need to create a contour effect for text apearing as an animated gif,
(The surrounding area around the text must repeatedly get brighter and darker)
Can anyone demonstrate this effect using sample code in C# \ GDI+ ?
thanks
|
|
|
|
|
Hi
How can i export a crystal Report containing Bar Charts to Excel and Pdf files. When i try to Export my Report with the following code All other things except Bar chart is geting exported.
ReportDocument rptExcel=new ReportDocument();
String strExportFile= "D:\\CareMapRelease03-03-09\\WpfCareMap on iq42\\WpfApplication1\\bad.xls";
rptExcel.Load("D:\\CareMapRelease03-03-09\\WpfCareMap on iq42\\WpfApplication1\\CrystalReport1.rpt");
rptExcel.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
rptExcel.ExportOptions.ExportFormatType = ExportFormatType.Excel;
DiskFileDestinationOptions objOptions=new DiskFileDestinationOptions();
objOptions.DiskFileName = strExportFile;
rptExcel.ExportOptions.DestinationOptions = objOptions;
rptExcel.Export();
Thanks & Regards
Prajeesh
|
|
|
|
|
In the Crystal Report Viewer you have an icon ,an option to export your file...once selected you get the Export As box..where in you can select the desired format and save it to the desired location..!
Why do u want to code..use it..!!
Jimish
|
|
|
|
|
But i need to code it bcos, without opening the cystal report page i want it to be exported to Excel sheet..I have coded it but i am not getting the Charts to be exported to Excel.
|
|
|
|
|
till what I found ... graphs take in the data that is loaded in a crystal report..! in other words graphs are drawn only after report is generated and filled with data...!
So without loading the crystal report, it won't be possible to do..!
[ The above reply is just based on some researches...though not sufficient...I am a noob...still in process of learning reporting .. ]
Jimish
|
|
|
|
|
But i have tried it by putting a button in the same page and try to generate it after the graph is generated in the crystal Report. Only an area of lines are coming in place of Graphs.
|
|
|
|
|
Chk this out...whenver you add database fields, there is another tab with it,if there are multiple tables...Crystal reports do auto linking...and here by default the linking is inner join...!! Sometimes this linking if not correct creates trouble..that is data is shown but graph does not generate..!generally go for a outer join or no links...whatever suitable to ur tables...!
Do let me knw if ur problem is solved..!
Jimish
|
|
|
|
|
Thank for your quick response,
But for me graph is coming properly in crystal report but it is not exported to Excel sheet.
|
|
|
|
|
Hey..
I dont knw wht code are you writing on the button click in report..
but for me..the graph once generated..I use the crystal report viewer's export button/image...when i click I get variety of options in which this graph can be saved...when i select Excel...it properly saves the graph in excel..!
I think there must be some event which is triggered when I click the export button of viewer..if u want to code the process under a button click..u will have to trigger this event in ur button click..!
We have some function like ExportReport() in Crystal Report Viewer..!
Jimish
|
|
|
|
|
Yes this is what exactly i was looking for, this works fine
thank you very much for your quick response. So far i have used the report document objects Export methode, may be because of that it didnt work.
modified on Wednesday, April 15, 2009 1:31 AM
|
|
|
|
|
good to hear ..ur problem solved..do marks as answer..!
Jimish
|
|
|
|
|
Hallo
I need help with my code ...
I read image from my picturebox to memorystream and next i want save this
image from memorystream to my xls file.
I dont now how,... i have forever same problem,xls file then show only
System.Drawing.Bitmap but image isnt show.
Here is my code..
Excel.Application oXL;
Excel._Workbook oWB;
Excel._Worksheet oSheet;
try
{
oXL = new Excel.Application();
oWB = oXL.Workbooks.Open("C:\\tmp\\plan_udrzby.xlt", 1, false, 5,
"", "", true, Excel.XlPlatform.xlWindows,
"\t", false, false, 0, true, 1, 0);
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
DataRowView vypis = (DataRowView)machine_OverviewBindingSource.Current;
MemoryStream ms = new MemoryStream();
myPictureBox.Image.Save(ms, ImageFormat.Jpeg);
ms.Seek(0, SeekOrigin.Begin);
Image img = Image.FromStream(ms);
System.Windows.Forms.Clipboard.SetDataObject(img);
oSheet.Cells[3, 2] = vypis["Car"];
oSheet.Cells[6, 2] = ;
}
catch (Exception theException)
{
String errorMessage;
errorMessage = "Chyba: ";
errorMessage = String.Concat(errorMessage, theException.Message);
errorMessage = String.Concat(errorMessage, " Řádek: ");
errorMessage = String.Concat(errorMessage, theException.Source);
MessageBox.Show(errorMessage, "Chyba");
}
Can someone help my please
|
|
|
|
|
Hello,
i have a question to P2P, how it is possible to connect two Clients with TCPListener/TCPClient, but not with NAT! I know how to do that if i have a access to that specified porrts. I don't want that the user must at first configuring his NAT-Router, to get access. Is there any other way to do that (except a "Server-Client-Connection").
Well i don't know any other way, but i can't imaginge, that for example in a Instant Messenger (ICQ, AIM or something else) all data-transfers are running over their server (imagine the huge traffic). Has somebody experience in this? Or is there a "standardized" open Port in every NAT-Router which i can use?
Many Thanks
|
|
|
|
|
Generally, in P2P/IM systems, the server is used only to make possible the contact between clients, then the communication is done directly between clients.
To do what you want, at least one of the clients must be able to listen to incoming connections on the specified port.
You can try to auto configure port forwarding by using upnp (a tutorial here[^]), but keep in mind that upnp could not be available in your network infrastucture.
|
|
|
|
|
Exactly that is my Problem, i know i must have a server to manage the "external IPs", but the communication between the clients must (or better should) run over P2P to avoid huge traffic. And so how can i connect to a Cilent which has a NAT-Router without a Port-Forwarding? (I know i must open a port with TCPListener and so on, but that's not the problem )
Has somebody a exact example for my problem? I know the external and internal IP-Address and to find out the MAC-Address wouldn't be a problem. I would store that on a server and CLient 1 is asking for the network informations of Client 2 and then (now thats where i have a problem) Client 1 is establishing a Connection to Client 2.
Many Thanks
modified on Wednesday, April 8, 2009 8:10 AM
|
|
|
|
|
Has nobody any idea? I need "only" a connection between two PCs in a WAN, without manually Port forwarding. So i need UPnP and i don't have any idea if i get a connection, to use it to establish a TCPClient Connection. I'm extremely confused after reading all this posts about UPnP. I mean, how does that for example in Instant Messaging-Application works? Their File-Transfer and Streaming and so on doesn't run over the IM-Server, too. How does they get a connection. And to find out what the external IP Adress the PCs have isn't a problem. So how can i establish a connection between those PCs? A code example would be very great.
Many thanks
|
|
|
|
|
Operations working regarding calculator.It should be same as Calculator in our system
SANDEEP
|
|
|
|
|
Here[^] you are
I are troll
|
|
|
|
|
Hi,
I wanna change the project work timings of microsoft project using .net. Am in need to change holidays of the project from saturday,sunday to wednesday. Please help me out in this.
Thanks
Maheshkumar B
|
|
|
|
|
i have code like this
public void Page_Load(object e, EventArgs s)
{
try
{
XmlDocument doc = new XmlDocument();
byte[] chunk;
string message;
string xmlmessage;
xmlmessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<chunk xmlns:dt=\"urn:schemas-microsoft-com:datatypes\" dt:dt=\"bin.base64\">SSdtIGp1c3QgYSBsaXR0bGUgYml0IGNhdWdodCBpbiB0aGUgbWlkZGxlDQpMaWZlIGlzIGEg" +
"bWF6ZSBhbmQgbG92ZSBpcyBhIHJpZGRsZQ0KSSBkb24ndCBrbm93IHdoZXJlIHRvIGdvIEkg" +
"Y2FuJ3QgZG8gaXQgYWxvbmUgSSd2ZSB0cmllZA0KQW5kIEkgZG9uJ3Qga25vdyB3aHkNCg0K" +
"U2xvdyBpdCBkb3duDQpNYWtlIGl0IHN0b3ANCk9yIGVsc2UgbXkgaGVhcnQgaXMgZ29pbmcg" +
"dG8gcG9wDQonQ2F1c2UgaXQncyB0b28gbXVjaA0KWWVhaCwgaXQncyBhIGxvdA0KVG8gYmUg" +
"c29tZXRoaW5nIEknbSBub3QNCg0KSSdtIGEgZm9vbA0KT3V0IG9mIGxvdmUNCidDYXVzZSBJ" +
"IGp1c3QgY2FuJ3QgZ2V0IGVub3VnaA0KDQpJJ20ganVzdCBhIGxpdHRsZSBiaXQ=</chunk>";
doc.LoadXml(xmlmessage);
XmlNode node = doc.SelectSingleNode("chunk");
chunk = node.Value ;
Response.Write("sucsess ");
}
catch (Exception x)
{
Response.Write("error "+x);
}
}
can some body help me solve my problem or give me suggestion to solve the problem, thx
regards
novhard
|
|
|
|
|
Use chunk = Convert.FromBase64String(node.InnerText);
|
|
|
|
|
thx mate .., for answering my question
i will try it
|
|
|
|
|
I am building a "Messenger" and looking for an "Open Source" in C# using "Session Initiation Protocol"...Where can i find any?? its almost a week now and i hav failed to find any...
|
|
|
|
|
1. Implementation of discussion board.
2. Creation of discussion board categories.
3. Post Message In discussion board.
4. Display All discussion board messages.
5. Post Comments on discussion board.
|
|
|
|
|