You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

XML Publisher generating PDF on app server

6 replies [Last post]
HH's picture
HH
User offline. Last seen 10 years 10 weeks ago. Offline
Joined: 07/09/2008
Posts: 17

All,
I am trying to server a pdf fiel generated using XMLpublisher.

The peoplecode is on a field change event of a derived work record field.

I am getting when calling teh displayoutput method to open up the report to the user. ( think time rror. )

I have read that calling commitwork before the display output will do the trick.
But apparently not. Or maybe I am making some mistake.

Any suggestions ?

Lepa's picture
User offline. Last seen 2 years 14 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: XML Publisher generating PDF on app server

HH, It has been a while since you've posted this issue, were you able to figure it out?

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

HH's picture
HH
User offline. Last seen 10 years 10 weeks ago. Offline
Joined: 07/09/2008
Posts: 17
Re: XML Publisher generating PDF on app server

Any hints on what could be the issue ?
I checks with P.S and per them the code looks fine but still I am getting the error.
And the file is not getting served.

HH's picture
HH
User offline. Last seen 10 years 10 weeks ago. Offline
Joined: 07/09/2008
Posts: 17
Re: XML Publisher generating PDF on app server

Got it to work.
I kept just the displayoutput in field change and moved the rest to field edit. Not sure why I have to do that. I will have to expllore further as I see delivered pc which stuffs everything in the field change event alone.

Lepa's picture
User offline. Last seen 2 years 14 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: XML Publisher generating PDF on app server

HH, thank you for sharing your solution with us! Great you were able to get this resolved :)

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
Re: XML Publisher generating PDF on app server

Hi,
I am getting the same think time error when trying to use displayoutput(), could it be cz i am calling a dosave before i call the function.

Guest's picture
Guest (not verified)
Re: XML Publisher generating PDF on app server

I have removed the dosave and have tried still doesnt work. My requirement. Once a page has been saved, a print button should appear on the page. And on clicking this button a pdf file must be generated. I am able to get the output file in the server. but the new window with the pdf output does not appear, it throws in the same error as think time error. As of now, i have written the code on the field change of the print push button.