C#/Sql managment studio -> generate ER diagram for latex (PDF)
===

Just like in the title. Is it possible to generate ER diagram that can by convertert to latex file (or text file) for printing that in PDF (maybe some dll) ? OR how can i build that kind of diagram dynamically ? Got any suggestions ? Mine "looks" like that:

I need to extract from database all needed tables names and all column names for that tables. Then need to create relations, and thats the part that looks pretty hard. Could you give me some advice or maybe, like i said before there is an easier way to generate simple ER diagram from database.