Advanced Silverlight Printing Strategies (Silverlight TV #35)
- Posted: Jul 01, 2010 at 1:30 PM
- 66,065 Views
- 9 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
In this episode, Pete Brown discusses the printing API in Silverlight 4 and demonstrates his recent printing exploits. Pete shows John how, using the API, he created a printing library that serves as a report writer. The source code is available on codeplex (link is below).
Relevant links:
- John's Blog and on Twitter (@john_papa)
- Pete's Blog and on Twitter (@pete_brown)
- Silverlight Reporting on Codeplex
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Very interesting.
Do users need special permissions to install printing support?
Can regular user (who can only install ClickOnce apps) print using this library?
Does it require XPS printer driver?
can printing support be used to print any else from silverlight, besides the reports you mentioned?
For example: Microsoft Report Viewer control doesn't install printing support by default. The first time somebody tries to print it asks to install and most of the user in our network are not able to do so. So we ended up converting reports to something printable.
Thanks!
@ivan_
Nothing special is required. This is all Silverlight code that works in the sandbox as well as in elevated trust. No special drivers are required. If the user can print from a web page, they can print from Silverlight.
There are limitations here, though, compared to "real" reporting solutions. This is not a good approach for large reports due to the bitmap approach. Great for small stuff
In normal trust/sandboxed, printing must be started via a user-initiated event like a button click.
Pete
Great! Thanks. I will need to try.
Can I feed-in images from SQL Server reporting service reports into this?
Or rather report pages rendered as images.
This isn't really a SQL Server Reporting Services - level report writer. This is more for collections of info that make very short reports. Maybe some images, probably not graphs right now as I don't run through to ensure animations wrap up.
Not sure what you'll be able to do with SSRS in the short term, but for the long term, I'll make sure talk to the SSRS team and add your voice to the folks that are looking for a Silverlight solution.
Pete
Agreed. This solution is great for small reports, adhoc captures of data, and those one off exceptions that always come up in projects. if you need a reporting system, I would recommend looking at SSRS and voicing your opinions to their team on how you'd like to see it integrated with Silverlight. In short: 50 reports .... use SSRS. 5 ... this works fine.
Mr Papa
Your avatar has more hair than mine. I've seen your head. Actually, I'm pretty sure I've seen the ceiling reflected in it too
Something is deeply wrong here
Hey Now Silverlight #35,
Great Vid on Printing!
Thx 4 the info,
Catto
silverlight did not supporting Large Print Page sizes like a0
Hello, if anyone is interested in integrate SSRS with SilverLight and RIA Services, please check my article in CodeProject, Regards,
http://www.codeproject.com/KB/silverlight/SLReporting.aspx
Ernesto Herrera
MCTS Web Applications 2.0
Remove this comment
Remove this thread
close