Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/01/2007, 09:58
Avatar de Laika
Laika
 
Fecha de Ingreso: octubre-2001
Mensajes: 1.376
Antigüedad: 23 años, 6 meses
Puntos: 0
Escribir con ASPPDF en un PDF (error "acceso denegado")

Quiero escribir a un PDF existente un valor desde ASP.

Este e sel codigo que he usado:

Set PDF = Server.CreateObject("Persits.PDF")
Set Doc = PDF.OpenDocument( Server.MapPath( "resultados.pdf" ) )
Set Page = Doc.Pages(1)
Set param = pdf.CreateParam("color=black;size=9;")
Set param2 = pdf.CreateParam("color=black;size=11;")
Set Font = Doc.Fonts("Arial")
Set Font2 = Doc.Fonts("Arial Black")

Param.Add("x=508, y=725")
Page.Canvas.DrawText V0, Param, Font

nombre_pdf="resultados_calculos"
Path = Server.MapPath("pdfs" & "/" & nombre_pdf) & "" & ".pdf"

FileName = Doc.Save(Path, false)
'Response.write("<script language='JavaScript'>window.open('pdfs/" & FileName & "')<'/script>")

Set Page = Nothing
Set Doc = Nothing
Set Pdf = Nothing


El error que me da es de error en el acceso:

Persits.PdfManager.1 (0x800A002E)
Opening Output file failed: Acceso denegado.