Micro Focus QTP (UFT) Forums
How to read PDF in browser - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to read PDF in browser (/Thread-How-to-read-PDF-in-browser)

Pages: 1 2


How to read PDF in browser - linhke - 04-12-2010

Hi all,

Can any body tell me the solution for reading the content of PDF file that stored in browser?

Thanks in advance,
linhke
[attachment=419]


RE: How to read PDF in browser - upadhyay40 - 04-26-2010

Hello lihnke,

I have the same problem if you got any solution then please let me know.

Thanks


RE: How to read PDF in browser - Saket - 06-28-2010

I am preparing to demonstrate this as well with some nice documention, by the time see if this works for you.
you can use this to save the pdf and then you can read.

LearnQuickTestPDF


RE: How to read PDF in browser - linhke - 06-28-2010

Hi Saket,

I am trying your solution and i want to ask you some questions:
- The first, Can you tell me how to config to the message don't warn with each running scripts?
(as the attached file)[attachment=446]
- The second, Can you give an example about 'DownloadPDF' method?

Thanks,
linhke

Hi upadhyay40,

Did you try the Saket's solution?

linhke


RE: How to read PDF in browser - Saket - 06-28-2010

strange I never had this issue Smile
do you get this on every run?
did you run the install.vbs?
OS?


RE: How to read PDF in browser - linhke - 06-28-2010

Thank Saket, this message was dismissed. I thought that associate scripts with install.vbs Smile.
Any more, can you give me the example about 'DownloadPDf' method. I tried as: oPDF.DownloadPDF "pdflink", SaveAs or oPDF.DownloadPDF "pdflink", "C:\test.pdf", but don't get any files by all above?


RE: How to read PDF in browser - Saket - 06-28-2010

you are doing it in correct way, watch out the pdflink for any errors in the url.
it should work with all valid pdf urls, however it may depend on network connectivity/speed etc. I have experienced slow or bad file download on a slower internet connection otherwise works perfect.

let me know if your issue solved else mail me the pdf url.


RE: How to read PDF in browser - linhke - 06-28-2010

The pdf link: https://cyberstation-uat3.tester.loopone.com/view_pdf.htm?type=cyber_manifest&dept=8587&carr=TRS_DEMO_UK&prod=ND12&serv=1200&mnum=1&date=20100624
Can you try it. If not done, i think may be depend on the security. And i will contact with admin for the acception.

Thanks


RE: How to read PDF in browser - Saket - 06-28-2010

hey, its asking for login creds.


RE: How to read PDF in browser - linhke - 06-28-2010

Oh, i am sorry Saket. With this site you have to login and perform many steps before go to that link. Could you give me the pdf link and your codes that you done successfully?

Many Thanks,