Exporting images to XML SSRS - sql

Is there a way to export images to XML from SSRS?
Images column invisible when I open XML file via excel.
When export my report to excel directly no problem i can see the images.
Any suggestion?
Thanks,

You can't do this because the XML renderer is a data renderer that writes to a text file, much like the CSV renderer. That means that it doesn't attempt to export certain formatting and visual elements. Excel won't ever be able to load them because they weren't saved in the file in the first place. Just as if you were loading an exported CSV.
The Excel renderer, on the other hand, is a layout renderer which attempts to preserve those visual elements. Sometimes at the cost of making the data more difficult to work with.
Per the MDSN reference, https://msdn.microsoft.com/en-us/library/dd283112.aspx:
The XML rendering extension returns a paginated report in XML format. The schema for the report XML is specific to the report, and contains data only. Layout information is not rendered and pagination is not maintained by the XML rendering extension.
And https://msdn.microsoft.com/en-us/library/dd255234.aspx:
The Excel renderer is primarily a layout renderer. Its goal is to replicate the layout of the rendered report as closely as possibly in an Excel worksheet and consequently cells might be merged in the worksheet to preserve the report layout.
XML files themselves are text-based and rarely contain images. Even with image data stored as Base64, that would not achieve the result of having a column display images when opening in Excel.
One area where XMLs were used to store image data were the 2003 XML Office document formats, which stored them in a <pkg:binaryData>element. There's a chance you could generate such a file using an XLST transformation and a lot of work. But that is likely beyond the scope of your question, and at that point you would be better served just using the Excel renderer.

Related

Is there a way to convert a PDF File to a Crystal reports file?

I am trying to convert a pdf file to a crystal report file, is that even possible? IS there a software tool out there that does that?
I have looked on-line but can't find anything
The answer is no.
But given that the question is a bit odd (Crystal needs a data source), perhaps what you are after is embedding a PDF form outline in Crystal.
That can be done by inserting the PDF (or an image of the form) in the page header and taking advantage of the 'Uderlay Following Sections' option. This would make the form outline act as the background for the rest of the report, allowing you to position dynamic content on top of that image.

Crystal Reports not showing the PDF files dynamically

Im trying to get dynamic pdf files attached to my Crystal Report. I tried inserting a pdf dummy file using OLE object on crystal reports and going through the following steps:
Format Graphic (of the OLE) --> Picture --> Graphic Location --> Picked the column with the pdf files location and unique names
When I preview the report it still ONLY shows the dummy pdf. Any thoughts?
Thank you very much in advance,
MA
The Dynamic Graphic Location will only be able to work with 'image' file types (Example: .JPG, .BMP and .TIFF) and if a formula is used to dynamically change the image according to a database value, the data will change as expected so the correct image is displayed.
If an image is used the Dynamic Graphic Location will work as expected however if a non-image file type such as .RTF, .PDF are used then this will not work within this formula editor since they are not Graphic files.
If you want to use the Dynamic Graphic Location, your .PDF files would need to be converted to a graphic file such as .JPG, .BMP etc.

Content control toolkit creates extra custom xml parts on reopen docx

I am creating a docx with 2 rich text controls and 1 picture control. I open content control toolkit, create 1 custom xml part, type in the xml and bind xml tags to the content controls. I save the mapping and close it. When I reopen the docx, I see 3 custom xml parts created. All 3 with all the content controls. I am surprised why it would do that. As a result, when I apply the bindings using docx4j API, the data gets updated in the last custom xml part. Guess the output docx only shows the first custom xml part and hence I dont see any bound values. When I unzipped the docx and looked at the contents, I see that the last cutom xml part has been updated with the values, I set using the docx4j code. Am I doing anything different that makes content control toolkit create the extra custom xml parts? Please let me know.
If you look at the w:dataBinding elements, do they each have the same #w:storeItemID values?
Given your description, you'd expect a different value for each content control. If that's the case, docx4j should respect that. That is, it ought to use whatever is in the three custom XML parts. (The standard code for first injecting the XML will only inject it into one part though)
As a general comment, most docx4j users (me included) would use an OpenDoPE AddIn, not the content control toolkit, so I can't comment on its behaviour.

Is it possible to make a Telerik report based on an existing PDF?

I have a lengthy PDF time tracking document that was printed out and used in a paper process to schedule appointments. Now this paper process is being converted to an online application and this application needs to generate reports in the same format as the PDF document (this time programatically inserting values into rows instead of having someone write them on the piece of paper).
My question is this, is possible to somehow import the layout of that PDF document into Telerik reporter's designer? Otherwise, is there some sort of an intermediary tool that I can use to make the layout more exportable?
Just to clarify, I am not trying to save my reports as PDF but trying to use a given PDF's layout to create a similar looking report in Telerik.
Any tips would be very welcome.
Thank you very much!
There are numerous tools for extracting text or images from pdf files, but I am pretty sure nothing exists to extract the layout of a pdf. The pdf format is just text and symbols with coordinates. There is no layout to extract.

Debugging Paging in Sql Reporting Services

I'm working on my first significant Sql Reporting Services project and am having problems with paging. Most of the reports are already working.
What is happening is that I"m getting different numbers and locations of page breaks between Web Reportviewer, PDF and Word documents. The word is the closest, but none of the three are really correct.
I've looked for the for the obvious like extra paging and making sure the report does not go outside of the left or right margins. My problem is that I'm not sure how to go about troubleshooting reports that pages that do not break in the correct location.
Does anyone have a suggestion where to start?
I'm using VS2008, SQL2008 DE on Vista Dev box.
This isn't really a problem - the different renderers are rendering the report appropriately for their output. The web viewer is optimised for screen-based reading and generally allows more content per page than the PDF viewer does as the PDF viewer is constrained by the paper size that it formats to. Thus you get more pages when rendering for PDF than web; however, the content of the report is exactly the same.
The best illustration of this is the Excel renderer - the Excel renderer renders the entire report onto a single worksheet in most cases (for reports with grouping and page breaks set on the group footer it will render each group on its own worksheet). You wouldn't want the Excel renderer to artificially create worksheets to try to paginate your report. It does the appropriate thing which is to include all the data in one big worksheet even though that may be logically thought of as one big "page".
The web renderer page length is determined by the InteractiveHeight attribute of the report (in the InteractiveSize property in the Properties pane for the report) but the interactive height is an approximation rather than a fixed page break setting and your page breaks may still not conform to the PDF version even though the InteractiveHeight is set to the same length as your target page length.