473,748 Members | 3,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open XML doc from MemStream

Hi All,

I have a memory stream that I saved an XML doc to.

I can open an XML file in I.E. using:

System.Diagnost ics.Process.Sta rt("C:\\MyXML.x ml");

My question is what is the syntax for:

System.Diagnost ics.Process.Sta rt(the file I just saved to the
MemoryStream);?

Thanks

Oct 15 '07 #1
5 2510
On Oct 15, 4:17 pm, Looch <lucianoj2...@y ahoo.comwrote:
I have a memory stream that I saved an XML doc to.

I can open an XML file in I.E. using:

System.Diagnost ics.Process.Sta rt("C:\\MyXML.x ml");

My question is what is the syntax for:

System.Diagnost ics.Process.Sta rt(the file I just saved to the
MemoryStream);?
There may be ways of doing it entirely in memory with interop, but
it's likely to be much simpler to just write the data out to a
temporary file if you need a separate process to see it.

Jon

Oct 15 '07 #2
Looch,

I don't see a memory stream here, as you are specifying a filename when
calling the Start method (maybe you saved it to a file from a memory
stream).

When you call Start, you are specifying a program to run. The OS will
also take filenames and run the programs associated with them. In this
case, an XML file is associated with internet explorer, which causes IE to
be run with that filename as the first argument. This causes the browser to
open and load the file.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Looch" <lu**********@y ahoo.comwrote in message
news:11******** *************@e 34g2000pro.goog legroups.com...
Hi All,

I have a memory stream that I saved an XML doc to.

I can open an XML file in I.E. using:

System.Diagnost ics.Process.Sta rt("C:\\MyXML.x ml");

My question is what is the syntax for:

System.Diagnost ics.Process.Sta rt(the file I just saved to the
MemoryStream);?

Thanks

Oct 15 '07 #3
Hi,
Just save it to a temp file and use that same line to load it.

--
Ignacio Machin
www.laceupsolutions.com
Mobile & warehouse Solutions.
"Looch" <lu**********@y ahoo.comwrote in message
news:11******** *************@e 34g2000pro.goog legroups.com...
Hi All,

I have a memory stream that I saved an XML doc to.

I can open an XML file in I.E. using:

System.Diagnost ics.Process.Sta rt("C:\\MyXML.x ml");

My question is what is the syntax for:

System.Diagnost ics.Process.Sta rt(the file I just saved to the
MemoryStream);?

Thanks

Oct 15 '07 #4
"Looch" <lu**********@y ahoo.comschrieb im Newsbeitrag
news:11******** *************@e 34g2000pro.goog legroups.com...
Hi All,

I have a memory stream that I saved an XML doc to.

I can open an XML file in I.E. using:

System.Diagnost ics.Process.Sta rt("C:\\MyXML.x ml");

My question is what is the syntax for:

System.Diagnost ics.Process.Sta rt(the file I just saved to the
MemoryStream);?
You want to start an IE showing content from your own process?

You should look for IE and automation. Maybe this shows you a way. Under the
hood, this will be sending the content of the stream between processes.
You also could simply store the Stream to a temporary file and open that.

Or you use the WebBrowserContr ol. Then you have a simple IE-Window in your
own app.

Christof

Oct 15 '07 #5
Thanks All for the help. I decided to create a temp file to read
from...for now:)
Oct 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
11236
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#" onClick="window.open('/cgi-bin/displayimage.cgi?/store/demo/image.jpg&YOUR+PRODUCT%27<b>S+NAME+GOES', 'fullimage', 'WIDTH=420,HEIGHT=405,status=0')"> The original window should not reload, but is, and I have tested it with both version 4.72 and 7.02, and they both do it. IE does not do it....
10
6757
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a new window with maximized dimensions!) FYI, I uploaded the same code to: http://tosasoft.com/test/open.htm ========================================
3
24713
by: NeverLift | last post by:
But, if it's not open, I don't want to open it . . . using window.open will open it if it doesn't exist, even if the url in that open is null (the window is then empty -- but it's open). The situation is: A main window opens child windows one at a time as the user requests, each with its own name. The user may click in any child window or the main window to open a summary window, which has a name all windows know. I want to get that...
5
10599
by: Ryan Hubbard | last post by:
Is it possible to get the recordset from an open query window? So you run the query. The window is open. Can vba retrieve this data?
1
2566
by: C Sharp beginner | last post by:
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and close them as early as possible. My requirement is as follows: I'm developing a class library that will be instantiated by a COM component. My class library contains functions that perform lot of mathematical calculations and read a lot of data...
6
3633
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
6
10034
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On the client machine, the file type TIFF is associated with Kodak Imaging Preview. This app works on most client machines. When you click on the link, Kodak Imaging Preview will open the TIFF file on the client machine. However, on some machines, the...
0
12066
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in '/CinemaBookingSystem' Application. -------------------------------------------------------------------------------- ERROR General error Unable to open registry key 'Temporary (volatile) Jet DSN for process
0
8984
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.