Create a Database Diagram based on MS SSAS Data Source View in a printable format - visual-studio

in Visual Studio (2017 SSDT), if I open my MS SSAS cube, in the "Cube Structure" tab, under "Data Source View" I see all the tables/views that are used with all the relationships.
Since there are a lot of tables (with a lot of attributes) it is not possible to see all of them on the screen.
Is it somehow possible to export this Data Source View from Visual Studio or any other tool in a printable version (into jpg, pdf,... any format), to see all tables and attributes, and relationships?
Thank you.
BR, Tadej

Related

Create PDF form-fillable fields from Visual studio

A bit of a Visual Studio 2010 newbie here, but I have developed a modest working knowledge of how to create report forms linked to a database, but I have come across something that I have yet to face.
I have created a report that has three tables on it. Tables 1 (equipment specs) and 2 (operation schedule) are linked to my database. Table 3 is a table (equipment performance audit) that will need to be populated by the people out in the field. They will have to populate these fields in a PDF editor (Adobe) while they are out in the field and simply save them to PDF file. I do not believe there is a plan to have them to be imported back into a database table (which I think we should, but I don't help make those decisions...yet), so we don't need to worry about that.
The problem that I am facing is that I have no idea how to generate the fillable (i.e. text box?) fields for the PDF in Visual Studio, I tried inserting text boxes, but that didn't work...
Any help would be greatly appreciated. Thank you!
Have a look at the ITextSharp library. It will allow you to create PDF files on the fly. I'm pretty sure that it is also able to create PDF forms as well.
ITextSharp is a port of the JAVA based IText PDF library. so most of the conceptual information that applies to IText will also apply to ITextsharp
Some code examples to help:
- iTextSharp — few C# examples.
- Generating PDF using ItextSharp with Footer in C#
- Create PDFs in ASP.NET- getting started with iTextSharp
- IText In Action book samples
- Answer to Fill PDF Form with Itextsharp

Crystal Reports image loading on runtime

I have some reports with many records. Those records have images. They were coming from a .NET Dataset object.
I was initially making the approach of getting the images' contents into the records using System.Byte[] Columns, but the reports took up too much time to load.
I did time profiling. It is not the dataset construction that takes too much.
I put on the table the hypothesis of the images being slowing the process.
So I tried a different approach: Instead of having pictures directly into the tables, I have filepaths.
Following the practic described in Crystal Reports User Guide, I inserted a OLE object of "Paintbrush Picture Type" and its Image's Graphic Location was ser to a database table field. Additionally I also defined a file hyperlink to be the same field.
I tried, it didn' t show the image. But clicking the hyperlink was OK.
So I added more two OLE object items in the report for testing: the first's Graphic location and hyperlink have the filepath of the first record's image. It is a .jpg file.
I created additionally a .bmp copy of that image and set the second item's filepaths to point to this image.
Tested again, hyperlinks work Ok, but no images shown directly in report .
When I click Preview on Visual Studio 2010 Crystal Reports designer I can see the images, but not in runtime.
So, what am I missing for the images to show?
additional info:
VS 2010 premium
.Net framework 4
Windows 7 64 bits
Crystal reports is integrated on Visual Studio
Thanks in advance,
Sérgio
After some frustrating times, it seems I have found a solution in 3 easy steps:
Uninstall every component of Crystal Reports for VS 2008
Reopen Visual Studio 2010
Clean & Rebuild Solution
If you are using CR as a component, during runtime you will notice that the top bar of the component is different: the icons have different design and at right it will say "SAP CRYSTAL REPORTS"

How can I take a picture of my database Entity Framework model for people to reference?

My company has made an Entity Framework model of the database with all of the relationships mapped out and I'd like to take a screenshots of that with all of the FKs included in it. But I can't seem to figure out how to take a screenshot that includes all of that information. Any advice?
The "Export as Image" feature of Entity Framework generates an image that is too pixelated.
Alternatively, use NClass to generate diagram from ur Assembly containing EDMX classes
An alternative if you have Office OneNote 2007 you can simply print it to "Send To OneNote 2007" printer. Then you can use your favorite image editing tool to cut it however you want.
Oh the joy of Visio not being a major player in this game anymore. you can still reverse engineer a DB using Visio - which gives a nice presentation for printing.
Personally, the VS 2010 Entity viewer (Server explorer) is the easiest and quickest for me to use. The presentation isn't that bad either. Though you have more options with Visio as far as printing and portability. (You can still do Viso -> SQL in Visio 2010 with an addon).
Snipping tool (Vista/Windows 7) Start->Programs->Applications->Snipping it is such a helpful tool.
And oh am I glad no one actually said: "use your iPhone, take a picture and text it to your boss".
Why don't you use the Microsoft SQL Server Management (Express) Studio Diagram Option?
(To display the names of your relationships you can use Database diagram -> Show releationship labels)
Or you can use Ctrl + the mousewheel to scroll in/out in Visual Studio and you the Snipping Tool to take a screenshot.

Why use ReportView?

Reporting is pretty new to me. I see that VS provides some Reporting controls that provides a wizard to help creating the report. My question is, if I already have stored procedures that generate the report data, what is the difference between presenting it through a reportview or gridview? Is there obvious advantage that reportview control provides that other grid controls don't?
ReportViewer in local mode (RDLC) has a lot of additional functionality
ReportViewer can do multiple tables, graphs and non-table data
ReportViewer can paginate and print data
ReportViewer has capabilities to export the report into Excel, PDF etc.
You can use ReportViewer controls to display reports generated with Sql Server Reporting Services. So if you wanted to have a report that included charts or graphics, you could create it and host it in SSRS and then include it right in your application.
A grid view can only display data in a grid. The report viewer has the capability to format data in much more sophisticated ways.

Issues exporting an Excel file from Crystal Reports

I am having an issue exporting Crystal Reports into an excel file.
I tried both options of exporting the Excel data AND exporting as an excel file. When i export my Crystal Report as an excel file, i cannot sort any of the fields in my excel file.
When i export the report as just the excel data, when i open in Excel, the headers are really messed up. The first three headers appear at the END of all of the columns--which doesn't make any sense to me.
Does anybody know how to change export options in Visual Studio? I am using Crystal Reports on Visual Studio and have no idea how to change any of these options.
It sounds like your report has not been laid out in an optimal way for Excel export, and it's not Visual Studio or the export options that is the problem here. Depending on your version of Crystal, some tips would be :
1) Make sure all column headers are the same width and left-most position as the data they relate to.
2) Minimize gaps between column headers, and also gaps between detail rows.
Unless you're using earlier than CR8.5, it's likely you can't sort because the export has created lots of merged cells - points 1 and 2 will mitigate this substantially. Basically, if you're exporting to Excel you want your report's data to be laid out as similar to an Excel spreadsheet as possible.

Resources