How to add images before Header on exporting Data in Kartik Export Menu> - kartik-v

I am trying to add an image on as logo before headers in excel and pdf using ExportMenu by Kartik but unable to do so. I was successful in adding an image by using grid view and added images by passing in the table header and td so when exporting the grid, the image was prepended. But I am unable to do a Similar thing in ExportMenu and I am using ExportMenu by Kartik because exporting content from gridview was an issue because it had to load all the data on the page and it took a lot of time. So for a smaller number of records, it was working fine but for a larger number like 100k+, exporting gridview was not an ideal solution. Even right now, it is taking time for 1000+ records although I am using pagination and using batch tool of Kartik. So I am in need of a Solution on how to export images before the header (I Used contentBefore aswell but it doesn't allow images but string values only - https://demos.krajee.com/export). Any idea or help would be much appreciated

Related

Kartik yii2-mpdf: gridview grouping doesn't work

I'm using Kartik yii2-mpdf exporter to export a yii2 page. This page uses the Kartik GridView and the group option for a column ('group'=>true). The page looks like this: http://demos.krajee.com/group-grid-demo/2 (the build in exporter in this demo works)
When i use kartik mpdf exporter the columns just don't get grouped; displaying the page in the browser works.
I was wondering, how to make the group within the pdf.
UPDATE:
mpdf is rendering rows with rowspan correctly. so the problem i had was actual the data i provided for the gridview. Kartik's GridView is modifying the output with js to show up the rowspan correctly. So i build the table on my own, through looping through the data. A good example what is working with yii2-mpdf can be found here.
Besides this, i'm really wondering, how the export into pdf within kartik group grid is working?

WebPage Content is displayed in a List format

I am very new to Elgg development and have currently just started out in testing and modifying the contents within Elgg. However at this point, I am perplexed in the sense that the content displayed within the Elgg page is in ListView instead of the normal webView that you would see for e.g facebook display page. Hence, Just imagine the facebook header is in listview and all the other options are in listview. That is the issue that I am facing now.
The content as shown in the diagram below:
Therefore, does anyone have any idea in which directory I should look in to rectify the ListView display issue? Thanks
There are some possible reason of your problem :
your server/hosting is not matching with elgg's requirement, or
.htaccess restriction of your provider (for apache), or
etc ..
See for more detail : http://learn.elgg.org/en/1.11/intro/install.html

birt tool dynamic text with dynamic HTML having embedded image not showing in pdf

I am trying to display HTML content in PDF using eclipse Birt. Birt has Dynamic text(HTML format) pallets where we can display clob data. Here one of my HTML content is embedded image base64. While viewing in PDF the embeded html image is not displaying instead showing error msg "The resource content not found".
Birt expert please comment - On how to show Clob data embeded image dynamic HTML !
This is not going to work out of the box. BIRT HTML content is only meant for text formatting. Neither images nor HTML tables are supported (well, HTML tables actually are working to a minimal extent).
The best solution I can think of is: Parse the HTML yourself and extract the images yourself. But be warned, that's going to be tricky!
You would create two scripted DataSets, one for the text and one for the images.
Both DataSets would receive the HTML as input parameter.
The first one would just replace embedded images with a text like "see image #N" and return exactly one row.
The second one would extract the embedded images and return the image number, its URL and embedded data.
You could then use a List item in the layout to render the images after the text.
The script code will be complicated...

squarespace query only for home page

I am using squarespace developer kit and going well. I am wanting to integrate some queries to display some very simple data form my blogs that will appear on my home page ONLY.
Not being very fluent in JSON, I am struggling to implement the query on the home page. I have it set up to display the data from the selected blog but it displays the data through each page.
I only want the data to be visible on the home page at the top. Not in the header but inside where all the content is.
Here is my query that works perfectly well
<squarespace:query collection="feature-articles" limit="10">
<li>
{.repeated section items}
<li>{title}</li>
{.end}
</li>
</squarespace:query>
Can the data be inserted into a code block via the content manager so I can then insert into within the content or am I totally wrong in thinking that.
What I will then do is style/ add or edit the UI of the data into either a carousel or whatever is needed for the project.
I just need to know where to store the query so that it fits in with the content.
Appreciate any time.
Review the following link to see how you can edit a template file, to make different pages use different templates.
http://developers.squarespace.com/template-configuration/
Make a completely custom template just for your homepage then paste you code within your custom .region file as outlin ed in the above guide.
Here is the page about working with template pages:
http://developers.squarespace.com/layouts-regions/
Seeing as you know about , I have a feeling you might already know this, so you might want to be a bit more specific about how your displaying your code and I will gladly update my answer.

More pages when exporting to pdf than word?

I have a ssrs report that when exported to word gives ~7 pages. When exported to pdf it suddenly gives ~18 pages, a lot of blank ones only including header and footer.
I have a few page breaks in the report so information belonging together starts on a new page as the customer wants it. This particular report should be used for word, so it looks fine. But there was complaints about it not working properly for pdf anyway.
The Body width is smaller than Page width, Left margin, Right margin which according to this link can be an issue: How to get rid of blank pages in PDF exported from SSRS
The total height however is 140cm.
Suggestions / Help is appreciated.
just try to set "ConsumeContainerWhiteSpace" property of Report to True, by default its False.
I had tried that in almost same issue as yours and it worked!!!!!!!!
The issue I had was the format became .005 cm wider than what the Standard A4 doc allowed me, 210x297mm.