Mark,
I have successfully implemented a pdf generation routine in an aspx page
;)
It took a bit of experimentation, plus some input from the forum
archives at SourceForge, but basically:
Create the pdf as normal.
Point the PdfWriter at a memory stream rather than a
filestream. Then.
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Length",
myMemoryStream.GetBuffer().Length.ToString());
Response.AddHeader("Content-Disposition",
"filename=myFileName.pdf"); // the filename is apparently irrelevant!
Response.OutputStream.Write(myMemoryStream.GetBuffer(), 0,
myMemoryStream.GetBuffer().Length);
Response.End();
Hth,
Ian
-----Original Message-----
From: Mark E [mailto:[EMAIL PROTECTED]
Sent: 07 May 2004 16:11
To: [EMAIL PROTECTED]
Subject: RE: [AspNetAnyQuestionIsOk] Recommend an asp.net pdf component
Ian,
That would be great. Thanks.
Mark
Ian Payne <[EMAIL PROTECTED]> wrote:
Mark,
I've been using it in a couple of Windows apps for some while. I need
to use it in a web app soon - I'll let you know how I get on.
Ian
-----Original Message-----
From: Mark E [mailto:[EMAIL PROTECTED]
Sent: 07 May 2004 12:21
To: [EMAIL PROTECTED]
Subject: RE: [AspNetAnyQuestionIsOk] Recommend an asp.net pdf component
Ian,
I found this link during my initial search but was unable to get the
code to run in a web page.
Thanks,
Mark
Ian Payne <[EMAIL PROTECTED]> wrote:
Guys,
You might like to check out the iTextSharp stuff at SourceForge. It's
free, very fully-featured, & open-source.
http://itextsharp.sourceforge.net/
Ian
-----Original Message-----
From: Mark E [mailto:[EMAIL PROTECTED]
Sent: 06 May 2004 22:18
To: [EMAIL PROTECTED]
Subject: RE: [AspNetAnyQuestionIsOk] Recommend an asp.net pdf component
Shannon,
I am creating the rpt file at design time. I bind it to the CR report
viewer and then run it.
It's pretty basic, just some records from a table in sql server.
One thing I would like to do is change the report to landscape view. My
data is kind of wide, so I need it to fit on 1 page.
I don't care if it's CR or PDF format, just as long as it's presentable
and uneditable.
Thanks,
Mark
shannon hall <[EMAIL PROTECTED]> wrote:
Mark,
Are you generating the rpt file dynamically, or just
the pdf. Because we used Crystal 9, and the cr.net
and I thought they looked pretty nice. Course I don't
know exactly what you are doing with the report may be
more complicated than ours.
Shannon
--- Mark E <[EMAIL PROTECTED]> wrote:
> Shannon,
>
> I tried using CR.NET, the one packaged with Visual
> Studio.NET 2003, but didn't like it. It just didn't
> seem like it produced a very clean or professional
> report.
>
> Mark
>
> shannon hall <[EMAIL PROTECTED]> wrote:
> There's also Cryatal Reports, not sure what the
> difference is in feature lists from Data Dynamics or
> monetary investment.
>
>
> --- "Beaudette, Sheree" <[EMAIL PROTECTED]>
> wrote:
> > We use Data Dynamics Active reports and so far no
> > complaints. We create
> > .pdf files as well as excel files from ASP.NET
> apps
> > and both have worked
> > great.
> >
> >
> > -----Original Message-----
> > From: Mark E [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 06, 2004 2:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: [AspNetAnyQuestionIsOk] Recommend an
> > asp.net pdf component
> >
> >
> > All,
> >
> > My company is willing to open the check book for a
> > low cost component that
> > can dynamically create PDF files using ASP.NET.
> > Preferably database driven
> > from SQL Server.
> >
> > Any recommendations?
> >
> > Thanks,
> > Mark
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Win a $20,000 Career Makeover at Yahoo! HotJobs
> >
> > [Non-text portions of this message have been
> > removed]
> >
> >
> >
> > Yahoo! Groups Sponsor
> >
> > ADVERTISEMENT
> >
> >
>
<http://rd.yahoo.com/SIG=1295u4je2/M=295196.4901138.6071305.3001176/D=gr
oups
> >
>
/S=1705006764:HM/EXP=1083953474/A=2128215/R=0/SIG=10se96mf6/*http://comp
anio
> > n.yahoo.com> click here
> >
> >
>
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=
> > :HM/A=2128215/rand=873815030>
> >
> >
> > _____
> >
> > Yahoo! Groups Links
> >
> >
> > * To visit your group on the web, go to:
> >
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
> >
>
<http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/>
> >
> >
> >
> > * To unsubscribe from this group, send an
> email to:
> > [EMAIL PROTECTED]
> >
>
<mailto:[EMAIL PROTECTED]
crib
> > e>
> >
> >
> > * Your use of Yahoo! Groups is subject to the
> Yahoo!
> > Terms of Service
> > <http://docs.yahoo.com/info/terms/> .
> >
> >
> >
> >
> > [Non-text portions of this message have been
> > removed]
> >
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of Service.
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
>
> [Non-text portions of this message have been
> removed]
>
>
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://rd.yahoo.com/SIG=1290bdn0f/M=295196.4901138.6071305.3001176/D=gr
oups/S=1705006764:HM/EXP=1083964690/A=2128215/R=0/SIG=10se96mf6/*http:/c
ompanion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=353648330>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
cribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/> Service.
[Non-text portions of this message have been removed]
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://rd.yahoo.com/SIG=129aqv9ul/M=295196.4901138.6071305.3001176/D=gr
oups/S=1705006764:HM/EXP=1084015256/A=2128215/R=0/SIG=10se96mf6/*http:/c
ompanion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=781284378>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
cribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://rd.yahoo.com/SIG=129rhc4lu/M=295196.4901138.6071305.3001176/D=gr
oups/S=1705006764:HM/EXP=1084029056/A=2128215/R=0/SIG=10se96mf6/*http:/c
ompanion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=172004134>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
cribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/