Click here to Skip to main content
15,889,462 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: What kind of applications we can develop using WPF? Pin
Pete O'Hanlon15-Jan-09 23:25
mvePete O'Hanlon15-Jan-09 23:25 
GeneralRe: What kind of applications we can develop using WPF? Pin
ravi.vellanky19-Jan-09 1:13
ravi.vellanky19-Jan-09 1:13 
AnswerRe: What kind of applications we can develop using WPF? Pin
Jani Giannoudis16-Jan-09 4:13
Jani Giannoudis16-Jan-09 4:13 
GeneralRe: What kind of applications we can develop using WPF? Pin
ravi.vellanky19-Jan-09 1:10
ravi.vellanky19-Jan-09 1:10 
AnswerRe: What kind of applications we can develop using WPF? Pin
Jani Giannoudis19-Jan-09 1:24
Jani Giannoudis19-Jan-09 1:24 
QuestionHow save from FlowDocument to Xps Pin
VisualLive15-Jan-09 22:17
VisualLive15-Jan-09 22:17 
AnswerRe: How save from FlowDocument to Xps Pin
Pete O'Hanlon15-Jan-09 22:56
mvePete O'Hanlon15-Jan-09 22:56 
GeneralRe: How save from FlowDocument to Xps Pin
VisualLive18-Jan-09 20:52
VisualLive18-Jan-09 20:52 
HI Pete,
sorry for my later however i tried your advice
so i can save the document in .Xps but after i cannot read/open that file with the XPSViewer.exe...
XPSViewer got error:
I saw the file that i saved it is not empty but i don't why i cannot open it .
i used this code :"cannot open the document.The document may be not be a valid XPS document"
private void SaveToXps(string fileName)
      {
          if (string.IsNullOrEmpty(fileName))
          {
              throw new ArgumentNullException("fileName");
          }
          // If the file doesn't end in .xps, add the extension
          if (System.IO.Path.GetExtension(fileName).ToLower() != ".xps")
          {
              fileName += ".xps";
          }

          using (FileStream stream = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.ReadWrite))
          {
              TextRange range = new TextRange(FlowDocRdr.Document.ContentStart, FlowDocRdr.Document.ContentEnd);
              range.Save(stream, DataFormats.XamlPackage);
          }
      }


and for the button this one:
private void SaveToXps_1(object sender, RoutedEventArgs e)
        {
            SaveToXps("C:\\test1.xaml");
        }


Do you have any suggest for this error..
However thanks for your support.

Have a fun.

Bye
QuestionTextboxes Pin
boiDev15-Jan-09 4:25
boiDev15-Jan-09 4:25 
QuestionRe: Textboxes Pin
Mark Salsbery15-Jan-09 9:18
Mark Salsbery15-Jan-09 9:18 
AnswerRe: Textboxes Pin
boiDev15-Jan-09 23:09
boiDev15-Jan-09 23:09 
GeneralRe: Textboxes Pin
Mark Salsbery16-Jan-09 5:44
Mark Salsbery16-Jan-09 5:44 
GeneralRe: Textboxes Pin
boiDev16-Jan-09 5:57
boiDev16-Jan-09 5:57 
GeneralRe: Textboxes Pin
Mark Salsbery16-Jan-09 6:49
Mark Salsbery16-Jan-09 6:49 
GeneralRe: Textboxes Pin
boiDev18-Jan-09 23:01
boiDev18-Jan-09 23:01 
AnswerRe: Textboxes Pin
Mohammad Dayyan19-Jan-09 19:29
Mohammad Dayyan19-Jan-09 19:29 
QuestionBinding two comboboxes in WPF Pin
boiDev14-Jan-09 22:08
boiDev14-Jan-09 22:08 
AnswerRe: Binding two comboboxes in WPF Pin
sdixit11014-Jan-09 23:14
sdixit11014-Jan-09 23:14 
GeneralRe: Binding two comboboxes in WPF Pin
boiDev14-Jan-09 23:22
boiDev14-Jan-09 23:22 
GeneralRe: Binding two comboboxes in WPF Pin
Moim Hossain16-Jan-09 10:31
Moim Hossain16-Jan-09 10:31 
GeneralRe: Binding two comboboxes in WPF Pin
Pete O'Hanlon16-Jan-09 11:22
mvePete O'Hanlon16-Jan-09 11:22 
AnswerRe: Binding two comboboxes in WPF Pin
Pete O'Hanlon14-Jan-09 23:25
mvePete O'Hanlon14-Jan-09 23:25 
QuestionGetting Error on Grid Tag Pin
mr_muskurahat14-Jan-09 19:14
mr_muskurahat14-Jan-09 19:14 
AnswerRe: Getting Error on Grid Tag Pin
Mark Salsbery16-Jan-09 7:22
Mark Salsbery16-Jan-09 7:22 
AnswerRe: Getting Error on Grid Tag Pin
Mohammad Dayyan19-Jan-09 17:50
Mohammad Dayyan19-Jan-09 17:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.