|
|
pinPDF
Started by Andre at 09-21-2009 4:48 . Topic has 6 replies.
 
 
|
|
Sort Posts:
|
|
|
|
09-21-2009, 4:48
|
Andre
Joined on 09-21-2009
Posts 7
|
|
|
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
Joined on 08-30-2005
Posts 1.910
|
|
|
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
Joined on 09-21-2009
Posts 7
|
|
|
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
Joined on 08-30-2005
Posts 1.910
|
|
|
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
Joined on 09-21-2009
Posts 7
|
|
|
yes
I use vb.net in asp.net
|
|
|
|
|
Report
|
|
|
|
09-23-2009, 8:06
|
Pintexx Support
Joined on 08-30-2005
Posts 1.910
|
|
|
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
Joined on 09-21-2009
Posts 7
|
|
|
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 » Pdf on the fly
|
|
|
|