473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

16
i wrote this cod:

docView1.Selection.Select(textRange.Start, textRange.End);

and this work correctly on my machine
but in other machines this will throw exception:
Method not found: system.windows.controls.flowdocumentreader.get_sel ection()
what can i do?
is this for version of .netframework?
Jan 28 '10 #1
11 2443
tlhintoq
3,525 Expert 2GB
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.

.NET Framework Class Library
FlowDocumentReader Class
Provides a control for viewing flow content, with built-in support for multiple viewing modes.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.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
Jan 28 '10 #2
mjsafa
16
i have installed .netframework 3 on that system but the property SELECTION of FLOW DOCUMENT READER throws an exception
Jan 28 '10 #3
tlhintoq
3,525 Expert 2GB
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?
Jan 28 '10 #4
mjsafa
16
no that feature is accessible in 3.0
its so simple
using a flowdocumentreader.selection.select() method.
its so simple
Jan 28 '10 #5
tlhintoq
3,525 Expert 2GB
no that feature is accessible in 3.0

Really?
The MSDN for 3.5 shows a selection property
http://msdn.microsoft.com/en-us/libr...selection.aspx

The MSDN for 3.0 does NOT show a selection property
http://msdn.microsoft.com/en-us/libr...es(VS.85).aspx
Jan 28 '10 #6
mjsafa
16
i wanna select some text in flow document reader and bring it into view
what can i do?
Jan 28 '10 #7
tlhintoq
3,525 Expert 2GB
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.
Jan 28 '10 #8
mjsafa
16
i tried so hard on it and didn't faund any useful thing
plzzzz help
Jan 28 '10 #9
tlhintoq
3,525 Expert 2GB
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.
Jan 28 '10 #10
tlhintoq
3,525 Expert 2GB
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
Jan 28 '10 #11
mjsafa
16
thank youfor your answers
Jan 28 '10 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: sarah | last post by:
Using .NET C# installed Framework 1.1 with Service Pack 1 I have a MDI application in C# that contains 3 different forms. Form 1 has several controls one of which is a DataGrid control that...
3
by: Casper | last post by:
Hi .Net experts, I am trying to build a user control of textbox and would like to add a public method to the object like public void CheckOptions(string str) { // codes here }
6
by: Mike | last post by:
Hi, I have such problem: On my form I have TabControl. I want to move from one tab to another using "Next" and "Prev" button. This part works fine. But control also supports switching between...
14
by: NormD | last post by:
We have a client-server app using Web Services on an IIS machine. The trace below shows that .NET is searching around for some things (e.g., SystemDrawing.DLL and System.Drawing.EXE) and taking a...
5
by: Ronin | last post by:
I need a little help trying to figure out the last piece of this puzzle. I've got a form with an associated toolbox that will allow a user to drag a control off the toolbox and drop it onto the...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
0
by: M1Sports20 | last post by:
Here is a class i have expanded off of microsoft picturebox array in msdn. I have found a problem and I am thinking its not my fault. Here is how to reproduce the error 1. Create an instance of...
7
by: Bryan | last post by:
Hi , I am using ADO (ADODB) with access database. Not sure what I am doing wrong.here. Can anyone please help me? string mdbFile = System.IO.Directory.GetCurrentDirectory() +" \\bTrack.mdb;"...
5
by: lukasmazur | last post by:
Hi I have a problem with using listBox1. I have a two forms form1 and form2. In form1 are controls listBox1, textBox1 and button witch creating object of class Form2. In class Form2 I create a...
2
Manikgisl
by: Manikgisl | last post by:
we are trying to upload a file using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Net;
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.