Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can i launch a pdf from my Application.

Dear All,

I am having some documents in a Specific folder and i want to launch my docs which are in this folder through my QVW.

I have written a macro like:

set app= ActiveDocument.GetApplication

app.Launch "C:\Program Files (x86)\Adobe\Reader 10.0\Reader","C:\Myfiles\test.pdf"

MsgBox "Files Uploaded"

Macro runs well and shows the Message "Files Uploaded".

But the PDF file doest launch in my system.

Please can anyone help its urgent.

Thanks and regards,

Pranav

9 Replies
perumal_41
Partner - Specialist II
Partner - Specialist II

Hi,

Hi Pranv use this Macro

Sub Test

set app= ActiveDocument.GetApplication

app.Launch "C:\Program Files (x86)\Adobe\Reader 10.0\AcroRd32.exe","C:\Myfiles\test.pdf"

MsgBox "Files Uploaded"

end sub

Regards

Perumal A

Not applicable
Author

Hi Perumal,

Thanks for Reply..

yes yaar the msg comes but it doesnt launch the pdf file now also.

Check if anything can happen.

Regards,

Pranav

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi pranv ,

Check first  this  path is  correct or not (C:\Program Files (x86)\Adobe\Reader 10.0\AcroRd32.exe)

uother wise try this macro .i thing Path is Wrong. Path one time ensure  first

Sub Test

set app= ActiveDocument.GetApplication

app.Launch "C:\Program Files\Adobe\Reader 10.0\AcroRd32.exe","C:\Myfiles\test.pdf"

MsgBox "Files Uploaded"

end sub

Not applicable
Author

Thanks perumal,

Yepeee Got it.

Ok dear 1 more question if i dont want to give any specific path of the .exe, then how can i call it.

Regards,

Pranav

Not applicable
Author

Perumal,

se the attached screen i want to have more tahn 1 PDF to be called in 1 column.

And i am not writing macro from it i am only writing expression to launch PDF.

the expression is:

'160724.pdf'&'<URL>'&'D:\vinoth\160724.pdf'.

Check and tell how we can call more than 1 PDF in 1 Column.

Regards,

Pranav

Not applicable
Author

Hi Permal,

Check the attched QVW file.

There i want to bring more than 1 PDF in one Row.

Regards,

Pranav

Not applicable
Author

Chenna,

I am Sending you another application with Attachment path coming from DB.

Field name is Original Attach.

Please Check and give solution.

Regards,

Pranav

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi Pranv ,

Check this attached file , helpful  for u .

Not applicable
Author

Thanks Chenna & Perumal,

Some what it works let me also try with different angle and let u know.

Thanks a lot for ur help.