Pdf on the fly
pinPDF
Pdf on the fly
Andre
09-21-2009, 4:48
Hello, I buy the pdf Standalone Version, 1 Server License - ASP.NET.
It's possbile to build a pdf on fly.
Thanks for your help
andré
Re: Pdf on the fly
Pintexx Support
09-22-2009, 8:06
Hello Andre,
what exactly do you mean with "On the fly" ?
Do you want to i.e. generate the PDF on an aspx page and return the PDF immediatelly ?
Regards,
Hans-Peter
Re: Pdf on the fly
Andre
09-22-2009, 9:08
I want to a browser to generate thr pdf, but, I d'ont want to write in on my server.
Re: Pdf on the fly
Pintexx Support
09-22-2009, 1:25
The PDF should be displayed directly in page without creating a temporary PDF file at server, right ?
Which technology do you use ?
Re: Pdf on the fly
Andre
09-22-2009, 3:40
yes
I use vb.net in asp.net
Re: Pdf on the fly
Pintexx Support
09-23-2009, 8:06
Hello,
I currently can only provide a c# sample. But it should be easy to take the same classes in VB:
Pintexx.Components.Web.pinPDF pdf = new Pintexx.Components.Web.pinPDF();
pdf.PaperSize = Pintexx.Components.Web.pinPDF.enPaperSize.A4;
pdf.Orientation = Pintexx.Components.Web.pinPDF.enOrientation.Portrait;
pdf.Unit = Pintexx.Components.Web.pinPDF.enUnit.mm;
pdf.MarginLeft = 1;
pdf.MarginTop = 1;
pdf.MarginRight = 1;
pdf.MarginBottom = 1;
pdf.Html = "<p>Hello</p>";
Response.Clear();
Response.ContentType = "application/pdf";
if (!pdf.Process(Response.OutputStream)) {
Response.Write(pdf.ErrorMessage);
}
Response.End();
Regards,
Hans-Peter
Re: Pdf on the fly
Andre
09-23-2009, 10:08
thanks for your help. <br />
It's exactly that I want.<br />
I put your code in vb, if you want to use it<br />
Dim pdf As New Pintexx.Components.Web.pinPDF()<br />
pdf.PaperSize =intexx.Components.Web.pinPDF.enPaperSize.A4<br />
pdf.Orientation = Pintexx.Components.Web.pinPDF.enOrientation.Portrait<br />
pdf.Unit = Pintexx.Components.Web.pinPDF.enUnit.mm<br />
pdf.MarginLeft = 1<br />
pdf.MarginTop = 1<br />
pdf.MarginRight = 1<br />
pdf.MarginBottom = 1<br />
pdf.Html = "Hello"<br />
Response.Clear()<br />
Response.ContentType = "application/pdf"<br />
If Not pdf.Process(Response.OutputStream) Then<br />
Response.Write(pdf.ErrorMessage)<br />
End If<br />
Response.[End]()<br />
thanks again
regards,
André