Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I export a DBML diagram from Visual Studio into an image?

I have a very pretty DBML diagram that I would like to preserve in our Design Documents. How do I get an image showing all of the tables in one go?

I found How to export Visual Studio 2010 UML Modeling Diagrams but the slightly elegant solution of copying all the items and pasting them into an image editor doesn't work in this case.

Am I stuck with Print Screen and manually stitching the images together?

like image 618
Simon Gill Avatar asked Feb 04 '10 16:02

Simon Gill


People also ask

How do I create a Dbml file?

To create a DBML file, right-click on your project à Go to Add à select New Item à select LINQ to SQL template, give name as “EmployeeDB” and click like as shown below. After adding LINQ to SQL dbml file, that will be as shown below. Here if you observe, we have two sections in the left side section.

What is Dbml file in Visual Studio?

DBML files are used by the Visual Studio Code Generator to auto-generate Visual Basic, C#, or XML source code files. This allows developers to manipulate database records directly as native classes within the application. NOTE: DBML files are stored in an XML format and must conform to the published DBML .


2 Answers

You could print to the Microsoft Document Image Writer. That'll create a TIFF for you.

For those unaware, it's a virtual printer included in Microsoft Office Professional allowing documents to be saved in TIFF.

like image 165
p.campbell Avatar answered Sep 23 '22 01:09

p.campbell


first Install adobe acrobat then inside visual studio click on print preview and then click print you should print as a pdf file .

like image 32
Hesam Avatar answered Sep 25 '22 01:09

Hesam