It does work. You could be right about the server forms configured on the system, but the PageSetupDialog doesn't seem to mind. If you solved the problem of printing an A3 form by enumerating the PaperSizes like I said a while back, great. If you're trying to print something else customized, it's possible the printer (or maybe even the print server) might not support it.
There were some examples of setting custom paper sizes in the google link I gave you. If they don't work for you, either you have a botched .NET installation (which I doubt, because many other things would be wrong), or your printer has problems or limitations. I have a Lexmark myself and I am not particular crazy about it (what can I say, it was free).
Thanks, I found what I was looking. But if you have read it, you have noticed that what I was asking cannot be done with C#, not completly. There is an example on how to add the form using c++ code, and then with that form, use it in c# to print the custom size. So I assume the custom size option using the papersize constructor only works on Windows 98 or before.
I wanna know how can i send mail thru my pc without using any email client.
i tried using SMTPMail object. in that i specified the SmtpServer as "localhost". On doing so all my mails are delivered into "c:\Inetpub\mailroot\Queue\" directory.
Now i want to know how d i send these mails to firstname.lastname@example.org or at hotmail address.
Please someone help me.
You have to setup your SMTP Virtual Server in the Internet Information Manager snap-in (in your Administrative Tools in your Control Panel) to forward mail accordingly. Otherwise, the server doesn't know where to send mail.
Thanx for this.
But actually i didn't unerstand anything in this GEEK code. COuld u please tell me in detail how to configure SMTP virtual server so that i can send mails to Internet mail accounts like Yahoo and Hotmail.
Um, yeah, that's called a signature - it wasn't part of the message.
As I said, open Internet Information Manager and you should see your SMTP Virtual Server. Right-click and select Properties, then RTFD. There's far too much to cover in a forum. You have to understand basic SMTP implementation, but the docs will help. As always, just hit F1.
This has been asked before, and as I told the previous person, you should consider using Label controls below the DataGrid. If you have a data-bound DataGrid and programmatically add a row, you must do so to the DataGrid.DataSource, which will add the row. If you then update that data source (say, to a database or XML file), it will contain that summary row. This is hardly what you want, I assume.
So, just use some values below it. That's what we do in our application, and there are many other benefits as well. First, it separates the summary of columns making it easier to see, and it doesn't scroll or resize like a DataGrid could, thus hiding certain summations. Second, one rarely needs to summarize ALL fields (for example, how would you summarize a name field for a person, company, etc.?), so just include enough labels to summarize what you need.
To summarize columns, just enumerate the rows and keep track of what you need to, then assign that value (or whatever) to a label that shows the value (or, if you use one label for the text label and value, use String.Format or something to assign the "Label: Value", "Label=Value", or whatever format to the Label.Text property).
That utility sucks. Use a good - and free - one like NDoc[^]. A lot of people and companies use it. It can generate both HTML Help and Help 2 documentation (the latter is what VS.NET, MSDN Library, and a couple others use now), as well as a few other formats. By default, private and internal members are documented, but you can opt to include or exclude these individually (as well as protected and public members...and many, many other options!).
Thanks a lot for the info. i was trying to build the .sln provided by the
NDoc community but couldn't add the MSHelpCompiler.dll to the references.
Anyways, i installed it and could use it now; it's pretty cool.
thanks once again. if u have any idea of how to get the dll i mentioned plz
let me know.
i was busy with some thing else so couldn't let you know abt this early.
Just use the 1.2 installation at http://ndoc.sourceforge.net/download.html[^]. We're always updating features and testing new things, and building any open-source project with the latest non-stable code is at your own risk. I even use the installation for my actual documentation and I actually write code for the project (though it's been a while).