This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

xml apache fop acitvex adobe problem

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dynamically created a PDF using apache fop. It works fine in Netscape, but it does not opening directly with IE 6.02
I get the message to save to my computer or open. If I select to open - it does not know what to open it with, but I can save to my pc, but would like to have it open up directly as with netscape. That is, with IE I get the "File Download window ". The file type is "Adobe Acrobat Control for ActiveX ".


any suggestions why this is -thanks
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is happening most likely because of your server's settings. If you'll configure your web server to send the Content-Type header to application/pdf, both browsers should know that you're sending it a PDF.
 
mary morris
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse,
Thank you for your reply, I will check it in some other IE browsers. Someone said it worked in there IE browser, but I have tried it in two different ones. I was also thinking it was a security level that was set in IE broser optios.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by mary morris:
I was also thinking it was a security level that was set in IE broser optios.

Yes, that could also be a probable cause.
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Were you able to open pdf documents that you see in simple websites, like documentations etc., ?
 
mary morris
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes I was, so Lasse's reply would be the post likely reason. I have not yet tried implementing the content-type header, but I guess that is the problem.

Thanks
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by mary morris:
yes I was, so Lasse's reply would be the post likely reason. I have not yet tried implementing the content-type header, but I guess that is the problem.
Thanks


Then this link should help you further... http://xml.apache.org/fop/servlets.html
 
mary morris
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay thank you much
mary
 
mary morris
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually, while I am at it, I assume you have been producing fop documents, do you use a editor? I any kind to help with the formatting?
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by mary morris:
actually, while I am at it, I assume you have been producing fop documents, do you use a editor? I any kind to help with the formatting?


I use Textpad(a kind of notepad).. :roll:
 
mary morris
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ah, okay, thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I had the same problem in my project this morning.
It's linked to the cache usage of IE, different in Netscape/Mozilla.

I think you applied http headers to remove usage of cache in your file geenrated, like this :

response.setHeader("Pragma", "No-cache, post-check=0, pre-check=0");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 1);

You can't do this. IE doesn't manage it correctly.
 
Squanch that. And squanch this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!