You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 3.6.16779 64-bit Pre-release on Windows 10
True for prior stable versions too
Describe the bug
Excel will not open a hyperlinked PDF file in the correct application (SumatraPDF) once Adobe Acrobat is installed if SumatraPDF does not have a CLSID that can be assigned to HKEY_CURRENT_USER\Software\Classes\MIME\Database\Content Type\application/pdf.
To Reproduce
Steps to reproduce the behavior:
Set Default App > application/pdf > .pdf (Figure 1).
Create hyperlink to a PDF file (e.g., =HYPERLINK("Letter.pdf")) in an Excel cell (Figure 2).
Click on hyperlink in Excel. The PDF file opens in Adobe instead of Sumatra (Figure 3).
Expected behavior
Clicking on the hyperlink to the PDF file in Excel should open the file in my default app, SumatraPDF. However, it opens in Adobe, even if the default app is set to SumatraPDF and all other ways of opening the file open it correctly in Sumatra (Figure 4).
However, I am unable to set application/pdf to SumatraPDF.exe (Figure 5) because this appears to require that the referenced application have a CLSID (e.g., Figure 6). I am unable to locate a CLSID under HKEY_CLASSES_ROOT\CLSID\... for Sumatra.
Additional context/proposed solution
Solution could be to make a CLSID under HKEY_CLASSES_ROOT\CLSID\{xxxxx .... for SumatraPDF (Figure 7).
Screenshots
Figure 1. SumatraPDF is set as Default App for .pdf files
Figure 2. HYPERLINK function in Excel to link to a .PDF file
Figure 3. PDF file linked in Excel opens in Adobe Acrobat instead of SumatraPDF
Figure 4. This happens despite SumatraPDF being set as the default program and opens the file correctly in Explorer, Edge, etc.
Figure 5.HKEY_CURRENT_USER\Software\Classes\MIME\Database\Content Type\application/pdf does not have a CLSID set (unlike Figure 6)
Figure 6. Compare to: (see how this has CLSID)
Figure 7. CLSIDs under HKEY_CLASSES_ROOT\CLSID\ in regedit.exe
The text was updated successfully, but these errors were encountered:
SumatraPDF version
Describe the bug
Excel will not open a hyperlinked PDF file in the correct application (SumatraPDF) once Adobe Acrobat is installed if SumatraPDF does not have a CLSID that can be assigned to
HKEY_CURRENT_USER\Software\Classes\MIME\Database\Content Type\application/pdf
.To Reproduce
Steps to reproduce the behavior:
=HYPERLINK("Letter.pdf")
) in an Excel cell (Figure 2).Expected behavior
Clicking on the hyperlink to the PDF file in Excel should open the file in my default app, SumatraPDF. However, it opens in Adobe, even if the default app is set to SumatraPDF and all other ways of opening the file open it correctly in Sumatra (Figure 4).
This results from Excel's Web links being MIME types, not "Application defaults". MIME links are in the Windows Registry as:
HKEY_CURRENT_USER\Software\Classes\MIME\Database\Content Type\application/pdf
Reference: https://www.reddit.com/r/excel/comments/1fgpn7e/excel_hyperlinked_to_pdf_file_opens_adobe_reader/
However, I am unable to set
application/pdf
to SumatraPDF.exe (Figure 5) because this appears to require that the referenced application have a CLSID (e.g., Figure 6). I am unable to locate a CLSID underHKEY_CLASSES_ROOT\CLSID\...
for Sumatra.Additional context/proposed solution
Solution could be to make a CLSID under
HKEY_CLASSES_ROOT\CLSID\{xxxxx ....
for SumatraPDF (Figure 7).Screenshots
Figure 1. SumatraPDF is set as Default App for .pdf files
Figure 2. HYPERLINK function in Excel to link to a .PDF file
Figure 3. PDF file linked in Excel opens in Adobe Acrobat instead of SumatraPDF
Figure 4. This happens despite SumatraPDF being set as the default program and opens the file correctly in Explorer, Edge, etc.
Figure 5.
HKEY_CURRENT_USER\Software\Classes\MIME\Database\Content Type\application/pdf
does not have a CLSID set (unlike Figure 6)Figure 6. Compare to: (see how this has CLSID)
Figure 7. CLSIDs under
HKEY_CLASSES_ROOT\CLSID\
in regedit.exeThe text was updated successfully, but these errors were encountered: