I have a WPF application and I want to be able to print PDF document, but I don't want use the Adobe Reader (because I don't know if on client machine adobe was installed). Is there another way to print pdf in different manner programmatically in C#.
you can use cmd command to print, so in your program use exec... more info here
or then here in C#
Related
I'm trying to make my program have the ability to display a Microsoft Word file on a form but not having any luck in doing so. I want to be able to open the file and display it on the form as a Read-Only. So basically just display it's contents. Various users on the web have recommended displaying files in the WebBrowser control (under toolbox). I have tried this but failed to get it working. My end goal is to be able to annotate on top of the web browser (or something of similar manner) and subsequently save the annotations along with the opened file.
I'm not that experienced in the C# language too so any help on how to achieve my problem would be greatly appreciated.
I need to create silverlight application where customer will see some pdf files.
PDF files have to be inside silverlight control and not rendered as images (customer wants to select text)
For this purposes i need some free libriaries or code to convert pdf file to xaml (or just open pdf so i can convert it to xaml).
Which library can read pdf and help me to convert data to xaml?
Can I read somehow pdf file and write custom convertation tool?
I saw iTextSharp. Is this library can read pdf and help me with my issue?
I will be thankfull for any ideas or links.
I make use of the Acrobat Reader plugin to do the displaying for me. It does require a different method depending on whether your application is running inside or outside the browser (I check if the application is running inside the browser and change the means of display accordingly). If running inside the browser, I overlay the application with an IFrame, as I describe in this article: http://www.silverlightshow.net/items/Building-a-Silverlight-Line-Of-Business-Application-Part-6.aspx. Otherwise, I use the WebBrowser control. I have a control which does this all for you in the source code that accompanies my book, which is downloadable from the Apress website here: http://www.apress.com/9781430272076/.
Hope this helps...
Chris
Try Python is An interactive Python tutorial running in the browser.
http://www.trypython.org/
But, I want to run it in my Winform or WPF application.
How can I do that?
I konw WPF support WebBrowser, could I use try python by it?
I want to add a iteractive window in my application, not only run ironpython in it.
Try SharpDevelop. It will allow you to create a Winform application in IronPython and compile it to an executable. You should be able to compile the WPF IronPython example in this IDE.
We have a legacy application running on UNIX. Our windows users login to the application via a terminal application or commaind prompt. The app looks like one of those car-dealer like application which runs in dos mode interface.
I am creating a new winform interface to the application but still want to keep the legacy application online for a while, however I dont want the users to open up command prompt, but instead access the application from within my winform. Is there a usercontrol which I can place on the winform for command prompt access?
Solution ~ Ended up using a control from Rebex.net, fast integration and easy to use.
See this blog post from Jeffrey
With his code you can write to a Console window, even from a Windows Forms application.
NOTE
I would NOT recommend to do that.
A Windows Application should use the Windows as GUI and not the console window...
I've been keeping my eye on this one. It looks promising.
http://www.codeproject.com/KB/IP/Terminal_Control_Project.aspx?fid=469468&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2857639
I have a WPF application and I want to be able to save the output of the application to a PDF document, the item I want to save can be a Visual a Drawing or a FixedDocument (I can create it as any of those options, and it's easy to convert between them).
Is there any library that can convert directly from WPF to PDF (without writing code to walk the visual tree and recreate it using PDF primitives).
If you got your WPF visual tree rendered in to XPS then try this XPS to PDF converter NIXPS.
For this sceneario I recommend using XpsDocumentWriter class to get a XPS document, then converting it to PDF using Amyuni PDF Creator
Disclaimer: I work for Amyuni Technologies
We have just released a new library that facilitates this: NiPDF v1.0
Here is a link to an example on our site that converts WPF to PDF.
It is a 100% managed .NET assembly, and you don't need to learn an arcane API top be able to use it.