Click here to Skip to main content
15,119,954 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Load project into canvas Pin
Christian Graus23-Mar-09 16:21
protectorChristian Graus23-Mar-09 16:21 
GeneralRe: Load project into canvas Pin
emptythetill24-Mar-09 8:41
Memberemptythetill24-Mar-09 8:41 
QuestionDrag drop preview Pin
anishkannan23-Mar-09 1:54
Memberanishkannan23-Mar-09 1:54 
AnswerRe: Drag drop preview [modified] Pin
sivaddrahcir23-Mar-09 12:45
Membersivaddrahcir23-Mar-09 12:45 
QuestionDownloading file from server Pin
sumit703423-Mar-09 0:50
Membersumit703423-Mar-09 0:50 
AnswerRe: Downloading file from server Pin
Mark Salsbery23-Mar-09 10:51
MemberMark Salsbery23-Mar-09 10:51 
GeneralRe: Downloading file from server Pin
sumit703423-Mar-09 19:59
Membersumit703423-Mar-09 19:59 
AnswerRe: Downloading file from server Pin
Braulio Dez1-Apr-09 6:58
MemberBraulio Dez1-Apr-09 6:58 
You can do it using a trick.

Instead of calling the web service, from Silverlight call javascript method that will make an open to a given URL, this URL will point to a custom HTTP handler, then you return your file (implementing a custom HTTP handler it's easy can send you some info or link), you only has to say that the file is an attachment.

In my case I just render e jpeg, js:

function showReportDiagramPopup() {
//http: //www.javascripter.net/faq/openinga.htm
window.open("DiagramRenderPopup.aspx", "DatabaseDiagram", "scrollbars=yes, width=800,height=600", false);

// NOT IN USE, rather using popup
// Finally we are not going to use a popup, we just open the generated image as an attachment
//window.location = "DiagramImageHandler.ashx"

}

In Silverlight:

public void ShowDiagramImageRenderPopup()
{
System.Windows.Browser.HtmlPage.Window.CreateInstance("showReportDiagramPopup");
}

HTH
Braulio

/// -------------------------
     Braulio Díez

     DBSchemaEditor.com
     Free Silverlight based DB Schema Modeling Tool
/// -------------------------

QuestionRoutedEvent compare to event? Pin
mildred-frontfree23-Mar-09 0:34
Membermildred-frontfree23-Mar-09 0:34 
AnswerRe: RoutedEvent compare to event? Pin
ABitSmart23-Mar-09 1:04
MemberABitSmart23-Mar-09 1:04 
GeneralRe: RoutedEvent compare to event? Pin
mildred-frontfree23-Mar-09 1:24
Membermildred-frontfree23-Mar-09 1:24 
GeneralRe: RoutedEvent compare to event? Pin
Pete O'Hanlon23-Mar-09 2:00
mvePete O'Hanlon23-Mar-09 2:00 
GeneralRe: RoutedEvent compare to event? Pin
ABitSmart23-Mar-09 2:29
MemberABitSmart23-Mar-09 2:29 
GeneralRe: RoutedEvent compare to event? Pin
Pete O'Hanlon23-Mar-09 3:50
mvePete O'Hanlon23-Mar-09 3:50 
GeneralRe: RoutedEvent compare to event? Pin
ABitSmart23-Mar-09 3:56
MemberABitSmart23-Mar-09 3:56 
GeneralRe: RoutedEvent compare to event? Pin
Pete O'Hanlon23-Mar-09 4:08
mvePete O'Hanlon23-Mar-09 4:08 
GeneralRe: RoutedEvent compare to event? Pin
ABitSmart23-Mar-09 2:24
MemberABitSmart23-Mar-09 2:24 
GeneralRe: RoutedEvent compare to event? Pin
mildred-frontfree23-Mar-09 16:18
Membermildred-frontfree23-Mar-09 16:18 
QuestionWeb Service Software Factory Pin
Kamal Gurnani22-Mar-09 20:11
MemberKamal Gurnani22-Mar-09 20:11 
AnswerRe: Web Service Software Factory Pin
Pete O'Hanlon23-Mar-09 0:39
mvePete O'Hanlon23-Mar-09 0:39 
QuestionUIPAB for Composite WPF Pin
snowwolfchicago22-Mar-09 7:45
Membersnowwolfchicago22-Mar-09 7:45 
AnswerRe: UIPAB for Composite WPF Pin
rkaushik13-May-09 10:15
Memberrkaushik13-May-09 10:15 
QuestionNearestNeighbor rendering making mistakes? Pin
derm221-Mar-09 14:32
Memberderm221-Mar-09 14:32 
AnswerRe: NearestNeighbor rendering making mistakes? Pin
Mark Salsbery22-Mar-09 7:52
MemberMark Salsbery22-Mar-09 7:52 
GeneralRe: NearestNeighbor rendering making mistakes? Pin
derm21-Apr-09 10:44
Memberderm21-Apr-09 10:44 

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.