Different header in MigraDoc - asp.net

I have been looking around and I cant find a way to do this as I want.
I have MigraDoc creating a PDF that can be one page or more, the header on the first page I would like to be different to every other page. E.g. First page has a logo and all others do NOT. So I need more then one header. This is something that I have found to do using
Section.PageSetup.DifferentFirstPageHeaderFooter = True
The problem that I have is that this also means that the footer (that will not change at all) does not show up on the first page. For the Footer I am using a table Section.Footers.Primary.AddTable.
I could use a "quick fix" by just copying the table (footer) and pasting it with it changed to section.Footers.FirstPage.AddTable but then I would have a ton of code that is just messy and not needed as the footer does not change, is there a way around this?
Any help would be great. I will continue to look around to see if i can find anything more on this.

You could also use
section.Footers.FirstPage = Section.Footers.Primary.Clone()
after calling AddTable().
Maybe it would be enough to just all section.Footers.FirstPage.AddTable - IIRC the first page footer will be used for all pages if you do not assign a special primary footer (but I could be wrong about this; I'll check this Wednesday or Thursday).

Well, as no one else can answer this the best way I found to "solve" this problem is to create a function that creates the table. Then I call the function and use it as Section.Footers.Primary and section.Footers.FirstPage
If anyone does have a better way please do feel free to give a comment or something.

Related

Opencart 3.0.2.0 Custum Layout

Good afternoon
Is there anyone who can help me.
I have been trying for a while, but i do not get it done.
I use OpenCart 3.0.2.0 and would like a different kind of Layout.
I would like to select per banner whether it is left, center or right.
As soon as I choose left or right, this applies to the entire page.
Here is a layout I want:
This is what I want.
Can anybody help me with the code? And with file to edit.
I can guide you to a HTML/CSS/LESS code I have built and you can take an example from that should you wish.
I used lesscss.org, and the npm package less-watch-compiler.
https://github.com/mabbashm110/Sprint-Challenge--Responsive-Less
Also check this video out on how to create a custom theme on Open cart: https://www.youtube.com/watch?v=mqTstomXZiM
Let me know if you need help understanding it.
I think You have to modify controller and pass data to twig.
after modify twig file code according to your need.

Table doesn't carry header to new page mPDF

I have this problem/would like to have this functionality
I have an issue similar to #375 but rather, my tables function mostly as expected from the documentation. The only thing that I can't make sense of is that my table headers will start on one page, and then for a long table, or if it just extends past the end of the page, the table data will move to the next page, without it's table header.
These are mPDF and PHP versions I am using
mPDF 6.1.0. PHP 5.6.21
Below are some examples of the issue I'm having.
The second screenshot has a very long table that displays on the second page (which mPDF shrinks to fit all on the one page I believe).
Turns out, I just needed to keep looking through the documentation.
By applying the page-break-inside: avoid style to my table my problem was fixed.
I'm not totally sure if having the attribute repeat_header='1' on my table was also relevant, but that was what I had originally attempted to use to solve my problem.

Arrange fields in a view

Now after searching for 2 weeks afther a module to work on drupal 7.x version whatever, I took another way/module/guide/tutorial and yes finally i got somehow what i want without a error occures.
But now i want to make something very simple but i don't see it.
I have the module view and panel. And i want to list 3 fields in the next way:
**so you need 10 reputation for images, i'll try it to explain it like this:
|=
(where "|" is the thumbnail and "-" are the title and the other "-" is the date.
Now it shows like this:
title
date
thumbnail
I see alot on the internet about , display suite, panels, view with rewrite output, ...
But this must be soooo simple and that is getting me crazy. If i know how i just could write it myself in php/html whatever i would do it.
But i can't see the forest for the trees
Please give me something to work with or a link of a tutorial whatever. I need a right direction for this.
Yes my english is bad and i hate drupal, but still , i think drupal can be great, but it is not for me.
You are talking about "theming" which is how your fields are displayed on the screen. By default Views emits some HTML that wraps them in elements like . The exact HTML depends on which type of display you are using.
The quickest way to achieve the layout you describe is not really about Views at all, but using CSS. Make the thumbnail float:left and ensure the other two are displayed inline (without line break).

JQuery Plugin (Hover-Caption) Adding Offset to Images In Internet Explorer (all versions)

I have a Wordpress site that uses a JQuery plugin called Hover-Caption ( https://github.com/coryschires/hover-caption ).
The main page of site: (http://brighidfitzsimons.com) looks good.
However in Internet Explorer 9, a similar page based on Category adds a 282px top offset to the post thumbnail image. (http://brighidfitzsimons.com/category/lifestyle/)
I am new web developer so I am struggling to figure out how to isolate problem. Based on this stackoverflow entry ( How do I get rid of an element's offset using CSS? ) my current train of thought is to add a IE specific CSS sheet to 'reverse' the offset but I can't seem to get at the offending element. Also I'm confused why works on main page but not on category page. If you watch page loading carefully, it initially loads correctly then at the very end the images are moved down. Perhaps this is a clue.
First stackoverflow entry so I hope I have followed correct ettiquete. Please advise if you need me to provide any more information.
Thanks for taking time to read problem.
Regards Simon
It has something to do with the substitutions of the content inside the title, probably some quirk about ie9 which someone else would have more of an idea for me
just so you can take my word for it: http://jsfiddle.net/BXjK3/
the first two i have removed all the greater, lesser and quotes and it works, but I would say the browser does the substitutions before Javascript can see it, and it all goes down-hill
edit: worth mentioning the reason it looks like that is because the text is no longer properly contained, and so the display none is not taking effect on it, pushing all the images down and making it a jumble, due to the way the content is loaded the ie inspection cannot show me how the text is after the javascript, only what was loaded on page load, so i can't give you more help than that

How to use jQuery to show a different page in ASP.NET

I am trying to set up functionality similar to Netflix. Where if you mouseover a movie - you are presented with a window of movie details (all client-side).
At high level, can someone in this forum help by telling me how this should be implemented? I.E., one or more .aspx pages, what would go in code-behind, and .js file, css, etc. Just trying to get an idea on how this would be set up to work.
Basically, when I hover over an item, I need to query for details that belongs for that record being moused-over and display it in the window or div. I also need to have some functionality in that window (i.e. a textbox and button which will end up needing to get saved in a database).
Thanks for any tips and suggestions -
You would want to add an AJAX call to the hover event of the image, that pulls from a webservice/web method.
Here is a good example, you would change some things. However, it should get you started.
http://www.mikesdotnetting.com/Article/96/Handling-JSON-Arrays-returned-from-ASP.NET-Web-Services-with-jQuery
If I understood your question correctly, you should try this excelent jQuery plugin:
http://www.sohtanaka.com/web-design/css-on-hover-image-captions/
Look at the demo here:
http://www.sohtanaka.com/web-design/examples/image-hover/
easy to install and configure and very slick!
Good luck
EDIT: sorry wrong lik the first time
There are certainly many jQuery plugins that will do this for you. jQuery UI may also be of benefit.
Here is one that appears to do something like you are describing:
http://plugins.jquery.com/project/VisualLightbox

Resources