True, I already have filename in the header, but it's not being displayed.

FWIW, I checked my method, and I'm using QtmhWrStout() to stream the files.




-----Original Message-----
From: Joe W Holt [mailto:joe.holt@xxxxxxxxxxx]
Sent: Tuesday, July 18, 2017 4:25 PM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Page title for CGIDEV2 PDF file


I don't think you'll be able to affect the browser window that displays this document. I'd suspect the program name in the header is due to the fact that the browser is displaying that value on its own due to the data streaming from it. I'd also bet this varies from browser to browser.

***
Regards,
Joe W Holt
Sr Programmer/Developer
Jack Onofrio Dog Shows, LLC
405.427.8181



From: Jeff Stojevich <jeff.stojevich@xxxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>
Date: 07/18/2017 04:03 PM
Subject: Re: [WEB400] Page title for CGIDEV2 PDF file
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>



I use the Content-Disposition with the inline and 'filename' parameter.
Whatever is the value for 'filename' will be what the pdf name is when the file is brought up in adobe. Here is some sample code. I pass in the inDspFileName parameter so if I pass in "test" the file name in adobe will be called 'test.pdf'

'Content-Disposition: inline; filename=' + %trim(inDspFileName) +'.pdf

Here is the same line hardcoded with a name
Content-Disposition: inline; filename="test.pdf"

The 'inline' could also be replaced with 'attachment'



-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: Tuesday, July 18, 2017 2:32 PM
To: WEB400 (web400@xxxxxxxxxxxx) <web400@xxxxxxxxxxxx>
Subject: [WEB400] Page title for CGIDEV2 PDF file

I have a CGIDEV2 app that allows users to look up and view PDF files.
They're complaining that the window title for the PDF files is the CGI program name rather than the PDF title. Is there a practical way to get the PDF title to show?

TIA
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.