Welcome to Pintexx Forum Sign in | Join | Faq

pinPDF

Started by Andre at 09-21-2009 4:48 . Topic has 6 replies.

Print Search
Sort Posts:    
   09-21-2009, 4:48
Andre is not online. Last active: 07.01.2010 09:43:29 Andre

Top 100 Posts
Joined on 09-21-2009
Posts 7
Pdf on the fly
Reply Quote
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é
   Report 
   09-22-2009, 8:06
Pintexx Support is not online. Last active: 25.08.2010 06:24:55 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.840
Re: Pdf on the fly
Reply Quote
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
   Report 
   09-22-2009, 9:08
Andre is not online. Last active: 07.01.2010 09:43:29 Andre

Top 100 Posts
Joined on 09-21-2009
Posts 7
Re: Pdf on the fly
Reply Quote
I want to a browser to generate thr pdf, but, I d'ont want to write in on my server.
   Report 
   09-22-2009, 1:25
Pintexx Support is not online. Last active: 25.08.2010 06:24:55 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.840
Re: Pdf on the fly
Reply Quote
The PDF should be displayed directly in page without creating a temporary PDF file at server, right ?

Which technology do you use ?
   Report 
   09-22-2009, 3:40
Andre is not online. Last active: 07.01.2010 09:43:29 Andre

Top 100 Posts
Joined on 09-21-2009
Posts 7
Re: Pdf on the fly
Reply Quote
yes
I use vb.net in asp.net
   Report 
   09-23-2009, 8:06
Pintexx Support is not online. Last active: 25.08.2010 06:24:55 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.840
Re: Pdf on the fly
Reply Quote
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
   Report 
   09-23-2009, 10:08
Andre is not online. Last active: 07.01.2010 09:43:29 Andre

Top 100 Posts
Joined on 09-21-2009
Posts 7
Re: Pdf on the fly
Reply Quote
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é
   Report 
Pintexx Forum » Developer Produ... » pinPDF » Re: Pdf on the fly