Questo codice non vuole saperne di funzionare e non capisco perchè:
codice:
<script language="VBScript">
<%
Dim myPDF As New VB2PDF
myPDF.PaperSize = pdfA4
myPDF.FileName = "test1.pdf"
myPDF.StartPDF
myPDF.WritePDF "Hello world !", True
myPDF.WritePDF "This is a new row ", True
myPDF.WritePDF "and I can write in BOLD ", False, pdfBold
myPDF.WritePDF "or ITALIC ", False, pdfItalic
myPDF.WritePDF "or BOTH !", False, pdfBoldItalic
myPDF.WritePDF "And so and so ...", True
Dim i As Long
For i = 0 To 345 Step 15
myPDF.SetOrigin 300, 500, i
myPDF.WritePDF "--- NEW - text rotated by " & i & "°", False, pdfRegular
Next
myPDF.NewPage
myPDF.WritePDF "This is another page !", True
myPDF.EndPDF
%>
</script>
Errore:
codice:
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement

Non riesco a modificare il titolo della discussione, per favore moderatori pensateci voi, grazie!