|
Hi Everybody!
Can anyone recommand program that creates and HTML in MSDN style out of the xml documentation?
I've been looking for one on the web, but strangly I couldn't find one! (I thought there would be dozens!)
Thanks!
|
|
|
|
|
Hello
Green Fuze wrote: Can anyone recommand program that creates and HTML in MSDN style out of the xml documentation?
Sounds very much like a tailored program. And what do you mean by MSDN style exactly?!!
Also what Xml input will you give it to the program?
Regards
|
|
|
|
|
Nader Elshehabi wrote: And what do you mean by MSDN style exactly?!!
I would imagine he means that it functions like MSDN
Nader Elshehabi wrote: Also what Xml input will you give it to the program?
The XML that Visual Studio creates if you complile the assembly with the Produce XML Documentation project setting turned on.
|
|
|
|
|
I'm looking for something like JavaDoc in java.
Lets say you wrote a new class and you used the XML to write the API (or interface) of your class - all the public members of the class, and what do they do (so user will be able to use your class with ease).
in Java has JavaDoc.exe file that generate an HTML containing all that information from the source file itself.
since c# get only output XML I guess that there is a program that transforms the XML into an HTML (so it will, eventually, do the same as JavaDoc).
And by writing MSDN style, I meant HTML that looks like the MSDN APIs on the MSDN website.
hope it makes things a bit clearer
|
|
|
|
|
Green Fuze wrote: Can anyone recommand program that creates and HTML in MSDN style out of the xml documentation?
NDoc[^]
|
|
|
|
|
Thanks!!!
I'll check it out!
|
|
|
|
|
I was wondering how long it would take someone to point this out.
As of how to accomplish this, have you ever tried Google?
|
|
|
|
|
Hi
Does anyone know how do i can open a network printer as a file in C#?
I am using a xerox printer and would like to be able to send 'VIPP' comands
to it easily once i have written a reusable class that will facilitate this.
I can open the printer and write a line to it in vb6 just like this:
Open FindPrinter("\\ip123\thePrinter") For Output As #1
Print #1, "%%XGF example print command" //this would be a special print command
Close #1
the equivalent in C# as far as i can see does not seem to work:
IO.StreamWriter swMyPrinter;
swMyPrinter = new IO.StreamWriter("\\\\ip123\\thePrinter");
swMyPrinter.WriteLine("Hallo\n");
swMyPrinter.Close();
this returns an error telling me i need to call 'CreateFile' myself and then
use 'FileStream' contructors if i want to open devices like this. I think
this type of thing may only allow me to open a local printer on LPT1 as it does
not seem to be able to open the handle to the printer.
Is there a simple way of opening a network printer for writing?
Thanks in advance
Edd
|
|
|
|
|
Hello
In C# you can't access ports -and other devices as well- directly using FileStream. I don't know why they didn't add this support though!! If you do it throws System.NotSupportedException with this message:
"FileStream was asked to open a device that was not a file. For support for devices like 'com1:' or 'lpt1:', call CreateFile, then use the FileStream constructors that take an OS handle as an IntPtr. "
Now just like the message said, to access divice in C# as files do the following:
1- Use P/Invoke to call Win32 API function called CreateFile with the name of the device -in your case it will be @"\\Computername\Printer Share Name"
2- Retreive the handle to the device from the above function
3- Give that handle to one of the FileStream constructors overlosds that takes Argument 1 as a IntPtr
4- Now you have a FileStream object and you can access the device as a file
Regards
|
|
|
|
|
thanks for the quick reply
thats exactly the error message i got, after a bit of research I found a small tutorial on how to do this but didnt manage to successfully get it to work. I could well have done somehing completely wrong though (ive ben using c# for about 2 weeks so far so alot of this is quite daunting).
I shall endevour to give this another go when i get back to work.
thanks again
edd
|
|
|
|
|
Edd,
Is the tutorial you found online? I too need to access a printer with C# and am very new to C#.
Thanks,
Carol
|
|
|
|
|
|
|
Does anyone know how to create an application that will work on a computer that does not have the .Net Framework installed? It keeps saying that it can't find the mscoree.dll file. Is there any way of puting it into the program so you dont need to install .Net Framework?
|
|
|
|
|
Hello
Sorry!! Not possible.
C# like any other .Net language was made for the .Net framework, and your C# apps won't work unless the .net framework was installed on the user's machine.
Anyway, you can include .Net framework in your deployment project as a prerequisite, and then the .Net framework will be installed on the user's machine with your application in a quiet mode -ie. the user won't know-.
Otherwise you will have to migrate your app to old fashioned C++.
Regards
|
|
|
|
|
Hi
I wrote a script in Visual Basic that selected an area in photoshop by the following script:
selRegion = Array(Array (0,0),Array(60,0),Array(60,60),Array(0,60),Array(0,0))
docRefNewPicture.Selection.Select(selRegion)
Now I want to implement this code in a C# project. I already wrote a script that opens the picture but now I wanted to select the area by the following code:
NewPicture.Selection.Select(selRegion,1,0,false);
In this code selRegion must contain the information about the area I want to select, but I have no idée how to define the area and in what kind of object or format. I already tried the following tinks:
int[,] selRegion=new int[,] {{0,0},{60,0},{60,60},{0,60},{0,0}};
(error only one dimensional arrays)
System.Drawing.Rectangle Rect=new System.Drawing.Rectangle(0,0,60,60);
System.Drawing.Region selRegion=new System.Drawing.Region(Rect);
(error array expected)
Can anybody help me how to define selRegion??
Tanks a lot
Bauke
BWT
|
|
|
|
|
Hello
Your question is well organized but lacks some details.
Bauke Tilma wrote: I already wrote a script that opens the picture
Never heard of C# script?!! How do you open the picture exactly?? In photoshop, Component, or in your form?!!
Bauke Tilma wrote: NewPicture.Selection.Select(selRegion,1,0,false);
What is the type on NewPicture?
Bauke Tilma wrote: error only one dimensional arrays
Where is the prototype -ie. declaration- of the method that takes the selected area dimensions?
Regards
|
|
|
|
|
Is it possible to merge some columns as it is in microsoft word?
Thanks in advance
|
|
|
|
|
Hello
If you want to merge Column2 into column1
1- Read the data of each cell in column2
2- Append the data to each cell in column1
3- resize column1 to fit the data
4- remove column2
Regards
|
|
|
|
|
How can i change the current resulation of window when program is start ??
With Thanks
MHF
|
|
|
|
|
Hello
I don't think this is possible in C# per se. You have to call API functions.
Here is an Article[^] about it.
Regards
|
|
|
|
|
I am designing a report that requires that, for each page, the sum of a specified column is to be displayed at the end of the column before going on to the next page. For each page the total displayed should be sum of the column values on that page.
There is also a requirement that the same total at the end of the page be displayed at the top of the next page.
How do I achieve this?
example:
------Page 1------------
previous page total: 0
chq_amt
100.25
50.25
58.50
20.75
20.25
current page total: 250
----Page2--------
previous page total: 250
chq_amt
10.50
18.25
100.75
20.50
50.00
current page total: 200
etc.
This is my sign
|
|
|
|
|
Hi,
I have just added a tooltip component to a form and after I set a tooltip text, whenever I close the form I keep getting an "Object not set to an instance of an object" error message on closing the form.
protected override void Dispose(bool disposing)<br />
{<br />
if (disposing && (components != null))<br />
{<br />
components.Dispose();<br />
}<br />
base.Dispose(disposing); < --- "Object not set to an instance of object" error here<br />
}
Here's the code that I use to close the form :-
private void buttonFinished_Click(object sender, EventArgs e)<br />
{<br />
Dispose();<br />
this.Close();<br />
}
This only occurs if I set the text for a tooltip. If I don't set any text no error is thrown.
What gives? - Any ideas
Glen Harvy
|
|
|
|
|
Just a small idea :
If you dispose your form when you press the Finishedbutton, then all the stuff in your form gets disposed
But after that you call the Close method. As far as i can see, the closemethod closes the form and releases all, by calling Dispose(bool).
Try to compile/run your code without the dispose.
I have never tried to call a dispose method inside the form that I want to close, I have always Disposed it outside of the form (many times I do not dispose it at all and just reset the form to reuse it a few moments later when the user wants to see it, what is very likely).
Don't you also love the code?
|
|
|
|
|
Thanks for making it all seem logical .
Getting rid of dispose does fix it of course.
As an aside, when would one expicitly call dispose in a program?
Glen Harvy
|
|
|
|