-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Jigs
Message 1 in Discussion
----- Original Message -----
From: "john mckenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 19, 2005 10:18 PM
Subject: Re: ASP.NET & GDI+
>
> Thanks Mr.Jignesh, it works fine. I will get back to you if I have any
other
> issue's on ASP.NET in the future.
>
> Thanks again,
>
>
> >From: "Jignesh Desai" <[EMAIL PROTECTED]>
> >To: "john mckenzie" <[EMAIL PROTECTED]>
> >Subject: Re: ASP.NET & GDI+
> >Date: Tue, 19 Jul 2005 18:50:26 +0530
> >
> >Hi John,
> >
> >I think the problem is because its not able to get proper path.
> >
> ><% = SErver.Mappath("../images/") %> will return
> >"C:\inetpub\wwwroot\images" [ Note its without ending "\" ]
> >
> >So statement Dim s as String = Server.MapPath("../Photo/") &
newFileName)
> >will result into "C:\inetpub\wwwroot\photoFileNamex" [ Note "\" is
> >missing ] Kindly debug to be sure of the same
> >
> >So I suggest to use it in following way
> >
> >Dim s as String = Server.MapPath("../Photo/") & "\" & newFileName)
> >
> >This should solve your problem.
> >
> >let me know, if it did.
> >
> >Regards
> >Jignesh Desai
> >www.dotnetjini.com
> >
> >
> >
> >----- Original Message -----
> >From: "john mckenzie" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, July 14, 2005 7:34 PM
> >Subject: ASP.NET & GDI+
> >
> >
> > >
> > > This is my problem Mr.Jignesh,
> > >
> > > Dim img As New Bitmap(Server.MapPath("../Photo/" &
> >newFileName))
> > > Dim g As Drawing.Graphics
> > > Dim s as String = Server.MapPath("../Photo/") &
newFileName)
> > >
> > > Dim f As New Font(FontFamily.GenericSansSerif, 14,
> > > FontStyle.Bold)
> > >
> > > g = g.FromImage(img)
> > >
> > > g.DrawString("Microsoft .NET", f, New
> >SolidBrush(Color.Black),
> > > 5, 5)
> > >
> > > img.Save(s.ToString)
> > >
> > > Its shows, "A Generic Error Occured in GDI+"
> > >
> > > But instead I use : img.Save(s.ToString) with img.Save("physical
path")
> >its
> > > working well.
> > > The physical path i mean it by : "C:\inetpub\wwwroot\......"
> > >
> > > How to solve this problem? I even used Server.MapPath as Path but same
> > > problem. I posted on most of the forum but dont get any solution yet.
> > >
> > > Thank you in advanced.
> > >
> > >
> > >
>
>
>
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]