Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set up Acrobat to make it to be used by ASP

Status
Not open for further replies.

vicky2003

Programmer
May 27, 2003
22
CA
Hi,Everyone
I met a problem maybe someone have experience with it.
I tried to call acrobat distiller to convert .ps file to pdf file. It show excute failed. If I tried using VB,it successed! So I think maybe asp user doesn't have right access to the distiller. Anyone know how to set it?
Here is the code in asp.
acr = Server.CreateObject("pdfdistiller.PdfDistiller.1")
acr.bShowWindow = False
acr.FileToPDF "d:\lta\1.ps", "d:\lta\1.pdf", "Print"
Marshal.ReleaseComObject(acr)
acr = Nothing

Thanks advance,
Vicky
 
is the dll registered on the server? It needs to be for the server.createobject to work


Bastien

Cat, the other other white meat
 
Yes,I have registered this dll. In fact, I called this dll by another exe file,it successed! It only failed by asp way. So I thought it must security problem. Becuase the user will be different from current machine's user if we call the dll by asp.

Thanks reply,
Vicky
 
I think your partially correct.The user that is used for IIS probably does not have the permission, but that user is the same for everyone that visits the site (IUSR_machinename if I remember correctly). So you could give hat user permission and if it was a permissions issue then you should be good to go at tht point.

-T

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Hi,
The problem is I don't know how to set the permission to this user. I guess maybe there are two ways need to do , one is setting acrodist.exe security, another way is ASP permission setting. Could you please give me an idea?

Thanks a lot!
Vicky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top