|
I have a report that will be repesented as a tree, with three levels. I have a proc which returns three tables, one for the data at each level. I'd like to generate an XML document that represents the tree, which I guess means I Want to tell the data set how to look into the lower levels to get out the data that pertains to each higher level ? I have a feeling there's support for this, but not sure where it is ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Have you tried:
MemoryStream myStream =new MemoryStream();
myDataset.WriteXMl(myStream);
myXmlDocument.Load(mystream);
I haven't tried this, YMMV
|
|
|
|
|
No, but I was aware of it. Shaping the XML to represent the relationships between the tables is the primary issue here, not saving as XML per se.
Thanks for the suggestion, tho.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
Looks like it, thanks a ton.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi All,
well I am looking for an appropriate project to start up with, i have got around 7 months to achieve that. And i am quite new to .NET environment..
I have got a following idea, please suggest is it possible with C#.NET or not and what else programming tools would i be needing for this application.
Where can i get info about all this....pls help me out....the idea is as follows...
"A local company produces CD-ROM based multimedia software. They require a site which will provide small demonstrations, allow registered users to download updates to appropriate software and possibly allow interaction between different users. There must be appropriate security measures. The project would be to investigate how this can be done using commercial systems and to implement a prototype"
|
|
|
|
|
Cool - someone who asks at the start of their assignment, instead of the end.
The word 'site' means web site, so you're talking about ASP.NET ? How will the site provide 'demonstrations' of CD ROMs ? Overall, I'd say ASP.NET is the best web dev platform, but it depends on what you're actually being asked to do.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hehe.
Atleast he's doing some research in the early stages and not the day before its due.
-Larantz-
|
|
|
|
|
I am deploying a new revision of a windows application with a setup created via a setup project. I want to persist the user settings that were saved in the prior revision of the application. Is there a way to automatically do this via the actual setup project that I am unaware of, or will I have to do this programatically by retrieving those settings from the prior revisions user.config file?
Thank you...
|
|
|
|
|
Never mind. I can do this programatically with the upgrade method.
|
|
|
|
|
We have a .NET 2.0 project which is using wizarded Datasets. There are four stored procedures that return tables (as opposed to scalar values). One stored procedure when wizarded goes into its own datatable table. However, the other ones go into QueriesTableAdapter. I cannot for the life of me figure out what is different about them. I tried verifying that SET NOCOUNT ON was set, it was set on all of them. I tested to make sure that the SPs ran with no errors, they did. Two of the SPs are almost identical. Why are they going into that adapter? I was under the impression that adapter was for scalar-valued SPs or for ad hoc queries.
Is there any way to force the SPs into their own table? I thought about editing the partial class to add them, but it's a lot of painful handcoding and makes it hard to maintain, so I would like to avoid it.
Thanks!
Rebecca
|
|
|
|
|
Hey all..
i'm sort of new to this..but please help me on this one...
i'm trying to find a program that can handle a three way connection between 3 or more laptops. more specifically, i need every node to be able to receive messages from other node and then forward them to the nodes that havent received it yet. the case that i'm trying to handle is the hidden station problem in the case of a wireless ad hoc network between 3 or more laptops or nodes. if a node sends a message to another node, i need the receiving node to forward that message to the nodes that its connected to that are not in turn connected to the original sending node.
if no such application exists...which i doubt..but i cant find one anyway...at least tell me what i should be looking for.
thx!
Ghassan.
|
|
|
|
|
|
1>I have to retrive and display images that are present in a MS Access Database.
2>The images have been inserted in the database by the user by using the Insert Object Functionality of MS Access so the Image is displayed as Bitmap Image for .BMP and Package for .JPEG in the DataBase Image Field.
3>I have tried reading the data in a Byte Array and then display it but it dosent work that way.
//Obtain Image in a byte array
byImageArray = (byte[])Command.ExecuteScalar();
//Read the byte array to memory stream
MemoryStream memStream = new MemoryStream(byImageArray);
//Read Image from the memory stream into picture box.
picImage.Image=Image.FromStream(memStream);
An exception is thrown is Argument Exception:Parameter is not valid.
This code works fine if we store image in DataBase Programmitically by using Byte Array,but not when we access a image that had been directly in the table by user by using Insert Object Functionality of MS Access
|
|
|
|
|
This[^] could be useful.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Insert object "wraps" the image with an object 'container'. You'll have to work out how big the header is, and skip over the header bytes. You might also need to ignore some trailing bytes. You should be able to tell if the image was wrapped or not by looking at the first few (dozen or so) bytes - I think the header is reasonably consistent.
|
|
|
|
|
Thankyou for the response...
Can you tell me how i can work out header length
|
|
|
|
|
I am working on a reverse or re-engineering project that requires me to parse the C++ code completely into tokens. I can go the lex yacc way but it will not suit the time frame I have. I decided to to go for a XML extension of GCC called the GCC_XML available www.gccxml.org. i want to use this tool from a Windows C# based application and then detect design patterns from the paresed C++ file that has been converted to XML. How do I use the GCCxml in my C# application if the command line syntax to obtain the XML from C++ file is
gccxml foo.cpp --fxml= foo.xml
Assume I want to have a front end to this gccxml compiler.
|
|
|
|
|
Take a look at the Process class especially the Start method.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
how can i underline a text in the text box .. the way it is done in the Ms.word to indicate spell error
bia
|
|
|
|
|
Here's one way:
myTextBox.Font = new Font ("Tahoma", 8, FontStyle.Underline);
/ravi
|
|
|
|
|
Like the other two examples have said, you need to update the Font's underline characteristic. With a Textbox, however, you cannot underline specific text, just all or none. RichTextBoxes allow other functionality. Check out the MSDN pages on them if you'd like more information.
|
|
|
|
|
how can i underline a text in the text box .. as it is done in the Ms.word to indicate spell error
bia
|
|
|
|
|
in vb.net 2005
textbox1.font.Underline=true
that is innef for underline in textbox text
jeni_yash@yahoo.co.in
|
|
|
|
|
Hi everybody, can we use c# to build device drivers, or we must stick to c++?
|
|
|
|