Method not found: system.windows.controls.flowdocumentreader.get_sel ection()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mjsafa
    New Member
    • Jan 2010
    • 16

    Method not found: system.windows.controls.flowdocumentreader.get_sel ection()

    i wrote this cod:

    docView1.Select ion.Select(text Range.Start, textRange.End);

    and this work correctly on my machine
    but in other machines this will throw exception:
    Method not found: system.windows. controls.flowdo cumentreader.ge t_selection()
    what can i do?
    is this for version of .netframework?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    i wrote this cod:
    You wrote a fish?

    is this for version of .netframework?
    Well, by all means ask someone else to read theMSDN for you. Doing your own research would just be silly.

    Originally posted by MSDN
    .NET Framework Class Library
    FlowDocumentRea der Class
    Provides a control for viewing flow content, with built-in support for multiple viewing modes.

    Namespace: System.Windows. Controls
    Assembly: PresentationFra mework (in PresentationFra mework.dll)
    XMLNS for XAML: http://schemas.microsoft.com/winfx/2...l/presentation, http://schemas.microsoft.com/netfx/2...l/presentation

    This page is specific to
    Microsoft Visual Studio 2008/.NET Framework 3.5

    Other versions are also available for the following:
    .NET Framework 3.0
    Microsoft Visual Studio 2010/.NET Framework 4

    Comment

    • mjsafa
      New Member
      • Jan 2010
      • 16

      #3
      i have installed .netframework 3 on that system but the property SELECTION of FLOW DOCUMENT READER throws an exception

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        What is the exception message?
        Maybe what you are trying to do doesn't exist in 3.0.

        Have you looked at the MSDN for 3.0, 3.5 and 4.0 to see if the features you are using exist in 3.0, or if their implementation is different in 3.0 than 3.5?

        Comment

        • mjsafa
          New Member
          • Jan 2010
          • 16

          #5
          no that feature is accessible in 3.0
          its so simple
          using a flowdocumentrea der.selection.s elect() method.
          its so simple

          Comment

          • tlhintoq
            Recognized Expert Specialist
            • Mar 2008
            • 3532

            #6
            Originally posted by MJSAFA
            no that feature is accessible in 3.0

            Really?
            The MSDN for 3.5 shows a selection property


            The MSDN for 3.0 does NOT show a selection property

            Comment

            • mjsafa
              New Member
              • Jan 2010
              • 16

              #7
              i wanna select some text in flow document reader and bring it into view
              what can i do?

              Comment

              • tlhintoq
                Recognized Expert Specialist
                • Mar 2008
                • 3532

                #8
                Not my area of expertise.

                I have a hard time believing that in the last 6 minutes since the research was done for you and the links to the MSDN posted, that you have actually read the pages and tried some experimentation (trial-and-error).

                I recommend actually reading those MSDN pages and try to gain an understanding of them. Learn and understand and at least try to write your own code first before asking others to do it for you. Copy/Paste will only get you so far.

                Comment

                • mjsafa
                  New Member
                  • Jan 2010
                  • 16

                  #9
                  i tried so hard on it and didn't faund any useful thing
                  plzzzz help

                  Comment

                  • tlhintoq
                    Recognized Expert Specialist
                    • Mar 2008
                    • 3532

                    #10
                    Originally posted by MJSAFA
                    i tried so hard on it and didn't faund any useful thing
                    I guess we'll just have to agree to disagree. You were shown that there are different pages for the different framework versions, but you couldn't bother reading and comparing them yourself: You just said that you were using a 3.0 method when you weren't, so someone had to go show you.

                    6 minutes later you asked for someone to tell you how to do it.

                    I guess you and I just have different views of what "tried so hard" means.

                    Anyway, I'm bowing out of this thread now. As I said, this is not my area of expertise. I was simply trying to point you in the right direction of where to do your own research so you could see what methods were available to you under 3.0

                    I wish you the best of luck with your experimentation . When you have code that comes from the 3.0 framework, but still need some help please don't hesitate to show the code that you have written along with the details of errors so that someone with more experience in this area can guide you.

                    Comment

                    • tlhintoq
                      Recognized Expert Specialist
                      • Mar 2008
                      • 3532

                      #11
                      Just a couple tips:

                      If you need to write code that is 3.0 compliant then un-install the 3.5 framework.

                      Install VMware and create some virtual PC's with different operating systems and different versions of the framework. That way you can test if it works under 3.0 but not 3.5.... Windows XP but not Windows 7... and so on. Visual Studio can even send debugging directly to a VMware virtual computer so you can DEBUG in operating systems other than the one installed in your development PC

                      Comment

                      • mjsafa
                        New Member
                        • Jan 2010
                        • 16

                        #12
                        thank youfor your answers

                        Comment

                        Working...