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

  • SEARCH
  • Home
  • 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 8421039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:01:52+00:00 2026-06-10T03:01:52+00:00

I am developing exporting data in xpdl format. There are 2 options – version

  • 0

I am developing exporting data in xpdl format. There are 2 options – version 2.1 and 2.2. I am using SaveFileDialog, but how can I distinguish between those 2 options?

        SaveFileDialog dlg = new SaveFileDialog();
        dlg.Filter = "xpdl 2.1|*.xpdl|xpdl 2.2|*.xpdl";
        if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
        {
            //how can I check, which format is selected?
        }
  • 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-06-10T03:01:54+00:00Added an answer on June 10, 2026 at 3:01 am

    You can get or set selected filter for dialogs by checking FilterIndex property. And as stated in msdn:

    The index value of the first filter entry is 1.

    So for your task it would be:

            SaveFileDialog dlg = new SaveFileDialog();
            dlg.Filter = "xpdl 2.1|*.xpdl|xpdl 2.2|*.xpdl";
            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                switch (dlg.FilterIndex)
                {
                    case 1:
                        //selected xpdl 2.1
                        break;
                    case 2:
                        //selected xpdl 2.2
                        break;
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a mechanism for interchanging data between two or more processes using shared
I am developing an application in ASP.NET 3.5. i am exporting data to excel
I am developing an Application using vc++ and C# ,the application can Import and
I am developing a client-server-based web application using a canvas component to display data
While developing an application using gwt in ecliplse crashed. Now the server is running
For developing an devices monitor system, I am using a InetAdress isReachable method to
Summary: exporting pixel data from NSOpenGLView to some file formats gives incorrect colours I
I've been developing a WS client using JAVA and I'm having a problem with
I'm developing a tool for exporting slides from a PowerPoint presentation to images and
I am developing a social application using ASP.net and C# under .Net Framework 4.0.

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.