Showing posts with label namespace. Show all posts
Showing posts with label namespace. Show all posts

Saturday, March 31, 2012

System.Drawing.Printing

Can the System.Drawing.Print namespace (and it's print methods) be used in
ASP.NET ? Can we direct an output to a printer using these classes ? If not,
what is the alternative ?You can use any namespace with ASP.Net, and you can do anything.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"moko" <nospam-r_chakravarthy@.hotmail.com> wrote in message
news:unQO5kB$DHA.620@.TK2MSFTNGP11.phx.gbl...
> Can the System.Drawing.Print namespace (and it's print methods) be used in
> ASP.NET ? Can we direct an output to a printer using these classes ? If
not,
> what is the alternative ?
I thought "System.Drawing" used GDI+, which in turn is in the context of
Windows, not a web-browser ? Is that not so ?

"Kevin Spencer" <kevin@.takempis.com> wrote in message
news:etWYM3G$DHA.2432@.TK2MSFTNGP11.phx.gbl...
> You can use any namespace with ASP.Net, and you can do anything.
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
> "moko" <nospam-r_chakravarthy@.hotmail.com> wrote in message
> news:unQO5kB$DHA.620@.TK2MSFTNGP11.phx.gbl...
> > Can the System.Drawing.Print namespace (and it's print methods) be used
in
> > ASP.NET ? Can we direct an output to a printer using these classes ? If
> not,
> > what is the alternative ?
No, It is not so. An ASP.Net application is the same as any other
application. For example, you can use GDI+ to create images which you stream
out to a browser on the fly. In any case, the question was about printing,
which uses drawing. Now, I am nt sure that the person who asked understand
that the printing classes will only work on the server side (unless they use
a client-side .Net Windows Form), but there may be a reason why the person
wants their app to do some printing on the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"moko" <nospam-r_chakravarthy@.hotmail.com> wrote in message
news:esfXfBH$DHA.2412@.TK2MSFTNGP12.phx.gbl...
> I thought "System.Drawing" used GDI+, which in turn is in the context of
> Windows, not a web-browser ? Is that not so ?
>
> "Kevin Spencer" <kevin@.takempis.com> wrote in message
> news:etWYM3G$DHA.2432@.TK2MSFTNGP11.phx.gbl...
> > You can use any namespace with ASP.Net, and you can do anything.
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> > "moko" <nospam-r_chakravarthy@.hotmail.com> wrote in message
> > news:unQO5kB$DHA.620@.TK2MSFTNGP11.phx.gbl...
> > > Can the System.Drawing.Print namespace (and it's print methods) be
used
> in
> > > ASP.NET ? Can we direct an output to a printer using these classes ?
If
> > not,
> > > what is the alternative ?
> > >

System.Drawing.Printing for web form?

Dear All,
I knew that if i want to make some printout in window form, i can use
"System.Drawing.Printing" namespace.
Is it possible to use this namespace in web form in asp.net?
Thank you
Regards,
Angushi
you print form in the server or in the client?
daniel #
"angus" <angus@.angus.com> wrote in message
news:ukXOkZQTEHA.3512@.TK2MSFTNGP12.phx.gbl...
> Dear All,
> I knew that if i want to make some printout in window form, i can use
> "System.Drawing.Printing" namespace.
> Is it possible to use this namespace in web form in asp.net?
> Thank you
> Regards,
> Angus
>

System.Drawing.Printing for web form?

Dear All,

I knew that if i want to make some printout in window form, i can use
"System.Drawing.Printing" namespace.
Is it possible to use this namespace in web form in asp.net?

Thank you

Regards,
Angushi

you print form in the server or in the client?

daniel #
"angus" <angus@.angus.com> wrote in message
news:ukXOkZQTEHA.3512@.TK2MSFTNGP12.phx.gbl...
> Dear All,
> I knew that if i want to make some printout in window form, i can use
> "System.Drawing.Printing" namespace.
> Is it possible to use this namespace in web form in asp.net?
> Thank you
> Regards,
> Angus

Wednesday, March 28, 2012

System.Management

System.Management does not seem to import when I use Visual Web Developer
2005 Express Edition
I put
<%@dotnet.itags.org. Import Namespace="System.Management" %>
in my code. asp page
If I put
Dim objMOS As System.Management.ManagementObjectSearcher
In my vb code, it says that the type is not defined.
Why is this and is there a workaround?"news.orange.nl" <iemand@.microsoft.com> wrote in message
news:468d5931$0$63069$dbd4b001@.news.wanadoo.nl...

> System.Management does not seem to import when I use Visual Web Developer
> 2005 Express Edition
It won't by default...

> In my vb code, it says that the type is not defined.
It will do initially...

> Why is this
Because the System.Management namespace is not part of the default project
template.

> and is there a workaround?
Just add a reference to the System.Management namespace in Project Explorer.
Mark Rae
ASP.NET MVP
http://www.markrae.net

System.Management

System.Management does not seem to import when I use Visual Web Developer
2005 Express Edition

I put
<%@dotnet.itags.org. Import Namespace="System.Management" %>

in my code. asp page

If I put

Dim objMOS As System.Management.ManagementObjectSearcher

In my vb code, it says that the type is not defined.

Why is this and is there a workaround?"news.orange.nl" <iemand@.microsoft.comwrote in message
news:468d5931$0$63069$dbd4b001@.news.wanadoo.nl...

Quote:

Originally Posted by

System.Management does not seem to import when I use Visual Web Developer
2005 Express Edition


It won't by default...

Quote:

Originally Posted by

In my vb code, it says that the type is not defined.


It will do initially...

Quote:

Originally Posted by

Why is this


Because the System.Management namespace is not part of the default project
template.

Quote:

Originally Posted by

and is there a workaround?


Just add a reference to the System.Management namespace in Project Explorer.

--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Monday, March 26, 2012

System.Net is not available in VS2005 Web project

I'm trying to access the System.Net.Mail namespace in an ASP.NET application (not website) and it's not available. Any ideas why not?

It is available in a different web site project, but not in an application.

Thanks,

Kahanu

make sure that a reference to System.dll assembly is exists in your application.

Tuesday, March 13, 2012

System.Text.RegularExpressions.dll

I'm developing a custom namespace that needs to run a regular expression.
Here is a quick example of what I was doing
Imports System.Text.RegularExpressions
Namespace blah
public class foo
Public Function bar(ByVal strInput as string, strExpression) as boolean
dim rgx as new RegEx
rgx.pattern = strExpression

return rgx.test(strInput)
end function
end class
end namespace
Problem is It gives me an error trying to importSystem.Text.RegularExpressions and the VBC can't find theSystem.Text.RegularExpressions.dll and neither can I when I do a filesearch for it.
This concerns me because this namespace will be used on an asp.netapplication ... what if the host doesn't have that dll either? and whydon't I have that dll? am I missing something somewhere?
please help.
It's a name space. Not necessarily a physical file.
My bet would be that it is in System.dll.

are you sure you are using this code as it is ?
it doesnot seems to be complied !!!