Can I save a DMBL layout as a jpeg/png? - visual-studio-2010

Is it possible to save the layout diagram from a DBML file as a jpeg/png or any other image format?
A manager wants to know what we are storing in our database and the print out wasn't enough he wants an electronic version.
I know I can use a screen-shot but wonder if there are any other options? I've just thought about printing to a PDF printer as well. Still would be nice if there was a save to PNG
Thanks

If you are a MSOffice user, you can use Microsoft OneNote (copy diagram over there and then export it to a PNG), or you can use Snipping Tool, which is basically a nice tool for taking screen shots out of portions of the screen.

In the end I just used a PDF printer which worked quite nicely.

Related

Inserting image into PDF in xamarin forms

I am working on a project using images where the user gets to choose if they want to save in .jpg or .pdf format. So what I thought was either way save it in .jpg initially and then if they choose .pdf, just push the image into pdf. I read a lot of documentation like xfinium pdf and syncfusion pdf but sadly all those are licensed for commercial use. I was wondering if anybody could point me at the right direction so as to how to get this done without using paid licensing.
Thanks in advance.
Try to use: PdfSharpCore
is a partial port of PdfSharp.Xamarin for .NET Standard.

How to compare the layout of pdf files programmatically?

It is possible to rip the text from pdf and comapre it. And here i need to compare if the layout of the pdf with another pdf file. Is it possible programmatically? There are third party tools to do that, but is it available for testing using selenium or any programming language?
I have gone through google, but couldn't find a solid solution for this yet? Any help appreciated.
With PDF Box of apache you should be among other things be able to extract the text from existing PDF documents.
ps: you probably have to create a custom program in jave to extract and compare and invoke it from selinium.

extract a background from ppt powerpoint file

Does anyone know how to extract a background from a powerpoint ppt file? I have been googling about it and I read something about a slideshow master, but I don't see it anywhere.
I am running Microsoft PowerPoint 2008 on Mac.
You'll probably have to use Applescript to do the job if you intend to automate this. PPT 2008 lacks VBA. MacTech magazine has a thorough guide to automating Office 2008 via Applescript on their site, by the way.
In practice, if you know which slide's background you want to extract, and assuming you want to extract it as an image, you'd create a duplicate of the slide, delete all of the shapes on the slide (which'd leave just the background graphics), then use the Slide.Export method to save an image file at whatever resolution you need, up to 3000 pixels wide or so.
If there's any way to bag 2008 and use 2011 instead, life will be simpler and you'll leave it with more hair intact. ;-)

How to open autocad and draw shapes?

I have a question.I have an application that users can draw various shapes on it.
I'd like to have a button so when it is clicked autocad opens and my shapes appear in autocad.how can I do this?
thanks in advance.
You need to save your shapes in dwg or dxf format. If you're already using ObjectARX it should be easy, if not, you might want to read about it. You can then open the file normally or run Autocad with the file name as a parameter to open it.
You have to write an AutoCAD plugin by using AutoCAD.Net SDK instead of writing application out of AutoCAD.
AutoCAD has no feature like office application for controlling it like Microsoft.Office.Interop for accessing from out of it.

Load word document content to PrintDocument

I have a .doc or .dot file and I'd like to view it in PrintPreviewDialog. I heard that I only can view it if I can load the .doc content into PrintDocument object or atleast paint the content on.
Anyone know how to do it?
Thanks in advance
Microsoft Word is required to load the .doc and generate the preview image of document. Embedding Word in your own window used to be possible but support for this is rapidly disappearing. The old DsoFramer control used to be the standard solution but you can no longer download it. It got removed when the Office 2010 beta became available, an ominous sign. Embedding it in a WebBrowser might still be possible, not sure.
The long term solution is to use Word itself to generate the preview. Use the Document.PrintPreview() method.

Resources