Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6745337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:11:33+00:00 2026-05-26T12:11:33+00:00

I have a windows .net program that (among other things) will display image files.

  • 0

I have a windows .net program that (among other things) will display image files. These can be in either TIFF or PDF format, and at the moment the way they are displayed is to see what the file extension is, then to call the appropriate program to display that file.

Here’s the code fragment:

            imagepath = imagedataset.Tables("Table").Rows(imagecal).Item(2)
        imagepath = "\\tylerimaging\DocumentUpload\" & imagedataset.Tables("Table").Rows(imagecal).Item(3) & "\" & imagedataset.Tables("table").Rows(imagecal).Item(4)
        Dim PDFImage As String = imagepath.Substring(imagepath.Length - 3)
        If UCase(PDFImage) = "PDF" Then
            System.Diagnostics.Process.Start("AcroRd32.exe", imagepath)
        Else
            Try
                System.Diagnostics.Process.Start("MSPVIEW.EXE", imagepath)
            Catch ex As Exception
                If ex.Message = "The system cannot find the file specified" Then
                    System.Diagnostics.Process.Start("ois.exe", imagepath)
                End If
            End Try
        End If
    End If

Now, the problem is that if someone doesn’t have the acrobat reader installed, for example, but the full version of adobe acrobat, the process.start for AcroRd32.exe will fail. But, Windows clearly has the association between the file type of PDF and Acrobat – so, here’s my question – how can I get the file displayed by whatever program is associated with that file type in Windows?

Thanks in Advance….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:11:34+00:00Added an answer on May 26, 2026 at 12:11 pm

    Try calling Process.Start on the PDF or TIFF file itself. Windows will take care of it or raise an exception if nothing is associated with the file type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET web service that I can access via a windows program
I have a Windows Forms (.NET) application that can have multiple documents open simultaneously.
I have a .NET Compact Framework app that can runs on three windows machines
I'm developing a web system that (among other things) will be streaming video content
I have to write a simple program that will draw something in a Windows
I have a C# DirectShow.net program that i created on a windows 7 32bit
I have a windows forms (.net 3.0) project that won't run on my customer's
I have several .NET Windows Forms applications that I'm preparing to convert into a
I have a .NET Windows service and a .NET Web Application that I would
We have written a custom windows service (VB.NET, .NET Framework 2.0) that takes a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.