Monday, February 13, 2012

A more consistant Web Report Viewer?

Is there another way of displaying reports online that will show the data exactly as it wil be printed?

A number of things have been causing me problems, such as the fact that the pagination controls do not show the same number of pages that actualy get printed. And some fields in the the report viewer do not line up with their column headers, but on the print outs they do.

We used to use Crystal reports, and would like the report viewer to act in a similar manor to their ActiveX report viewer.

Any help is greatly apprechiated.

Many thanks

Matt

I am kindof shooting from the hip here without looking into it too deeply, but I am pretty sure that you can specify CSS as they apply to viewed reports. In doing so, there should be a "print.css", which can be altered as well. This may not be the solution that you are looking for, but I think that it would merit some looking in to.

Hope this helps a bit,

Nathan

|||

Hi Nathan,

Thanks for your comments, but thats not exactly what i was after.

I just had a thought though, there obvously is an activex control that can render the report as this is launched in the print preview.

Does anybody know how to use this renderer as the viewer embeded in a HTML page?

Cheers

Matt

|||

Hi Matt,

Print uses the EMF image extension. You can find the details here: http://msdn2.microsoft.com/en-us/library/ms155373.aspx

If you set the PageHeight and PageWidth properties of your report and use the same margins, this will make the web viewer more similar to the view of Print.

|||You can try displaying the EMF yourself, but I would guess that PDF might be more useable since you don't need to actually write an application to display it. For EMF, you are going to have to write something actually display the metafile that we send.|||

Hi Guys,

Thanks for your feedback.

Brad: I have played around with the Page propeties, however i could not get them to match the printouts exactly (which in this instance is what i need to be able to do), but thanks for the details on EMF, i'll definatley look into it.

John: I will look at how viable using PDF is in our situation, but i think the EMF file might be the way i have to go.

Does anybody have any info on converting a report into and EMF file?

Thanks again guys

Matt

No comments:

Post a Comment