Dear All, can anyone help here?
I need to use XML/XSLT to print out some documents which must all have
the same letterhead and footer section on all pages. The section in
between is dynamic XML, and will be of variable length.
Is it possible in XSLT to specify that this section must appear on
every page in this position?
And what is the best strategy for specifying that the variable XML
data between the header and footer must automatically roll on to
another sheet if necessary?
If anyone could give me a rough idea of whether this is possible, or
could point me in the direction of something on the web that deals
with this challenge, I'd be grateful. I'm pretty new to this stuff.
Thank you.
Will 3 6865
Hi,
If you need to stick with XSLT, then you will have to transform your XML
data into HTML pages, and use a CSS2 compliant to get them printed with the
layout you want. The way to create headers and footers in HTML pages with
CSS2 is explained in the CSS2 Specification ( http://www.w3.org/TR/REC-CSS2),
chapter 9.6.1.
If you can use XSL (XSLT + XSL-FO) ( http://www.w3.org/TR/xsl), you will
have a much better control of the rendering and create headers and footers
at your will (see chapter 6.4).
Hope this helps.
Mac
"will" <wi********@lyc os.com> a écrit dans le message de news: 34************* *************@p osting.google.c om... Dear All, can anyone help here?
I need to use XML/XSLT to print out some documents which must all have the same letterhead and footer section on all pages. The section in between is dynamic XML, and will be of variable length.
Is it possible in XSLT to specify that this section must appear on every page in this position?
And what is the best strategy for specifying that the variable XML data between the header and footer must automatically roll on to another sheet if necessary?
If anyone could give me a rough idea of whether this is possible, or could point me in the direction of something on the web that deals with this challenge, I'd be grateful. I'm pretty new to this stuff.
Thank you.
Will
XSLT is not a page layout language, it's purely an XML transformation
language, so it depends what output format you are going to generate.
If you're thinking of outputting HTML or plain text and working out where
the end of a page would be, forget it, certainly with XSLT. If you're
outputting plain text and can bank on the same number of lines each page,
write a post-process (not XSL) which counts the lines and puts the footers
on. For HTML you're screwed because it's the rendering engine that decides
how big various fonts are and how much to put on a page.
I would suggest you generate RTF or FO. These have the concept of footer so
you can just specify the footer and leave the page formatting to the
subsequent layout process. AFAIK HTML does not have the concept of a page
header or footer.
Andy
"will" <wi********@lyc os.com> wrote in message
news:34******** *************** ***@posting.goo gle.com... Dear All, can anyone help here?
I need to use XML/XSLT to print out some documents which must all have the same letterhead and footer section on all pages. The section in between is dynamic XML, and will be of variable length.
Is it possible in XSLT to specify that this section must appear on every page in this position?
And what is the best strategy for specifying that the variable XML data between the header and footer must automatically roll on to another sheet if necessary?
If anyone could give me a rough idea of whether this is possible, or could point me in the direction of something on the web that deals with this challenge, I'd be grateful. I'm pretty new to this stuff.
Thank you.
Will
Hi,
In this case, all you need is (in HTML, with a compatible browser) to
define a THEAD and a TFOOTER section in your TABLE. If you will use plain
XML, see CSS2 ( http://www.w3.org/TR/REC-CSS2), chapter 17.2.
Please note that your table must NOT have the "layout" property set to
"fixed"...
Mac
"will" <wi********@lyc os.com> a écrit dans le message de news: 34************* *************@p osting.google.c om... Just a little clarification. The XSLT creates HTML which is then viewed in a browser and printed by the user. My XSLT currently outputs tables of a set height to match the A4 page size. This works fine if the XML data in the centre of the document is a small volume. But if there is a lot of XML data, the current footer will get pushed down the page onto the next printed sheet, so I need a way to fix the footer to each page, and have the XML data text flowing round it (and round the header on the next page).
Thank you, Will This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steve Robbins |
last post by:
I need to create some reports for printing from my database. From
everything I can find using Google, there doesn't seem to be any ways to
override the default header and footer.
Is this still true? Any good workarounds out there?
Thanks for any help.
|
by: Niyazi |
last post by:
Hi,
I have an html page and I might be moving to asp.net page that contains a
some kind of forum and string.
It is kind of application form. User have to enter some (string) value into
the forum which forum actualy similar to small article.
Then user have to use PRINT button to print the page. My problem is that
when I try to print it...
|
by: Neri |
last post by:
Some document processing program I write has to deal with documents
that have headers and footers that are unnecessary for the main
processing part. Therefore, I'm using a regular expression to go over
each document, find out if it contains a header and/or a footer and
extract only the main content part.
The headers and the footers have no...
|
by: Greg |
last post by:
Hi,
Can I set up Internet Explorer printing preferences programmatically?
I need to get rid of header and footer.
I know I can change the printing settings manually, but this would not be
user friendly.
I am controlling the printing layout using CSS, but I could not find
anything for specifying header/footer preferences.
|
by: LilBuh |
last post by:
hi there :)
i ve been looking for some time a way to print an html file from vb.net
i came up with this code for printing and removing the header and footer
from IE
then once the printing is done restore the original header and footer
Imports Microsoft.Win32
Private WithEvents myprocess As Process
Private OldHeader As String
| |
by: Eric Lindsay |
last post by:
I have been trying to do a CSS liquid layout imitating a frame, using
position: fixed for header, footer, and side navigation, and a fixed
background image. Page is valid HTML 4.01 Strict, and is at
http://www.ericlindsay.com/palmtop/palmnote.htm and the CSS is valid
(with colour warnings but no errors) at...
|
by: bj |
last post by:
Hi,
Yes, this is yet another "switching from tables to divs for layout
purposes" post. I have been searching for the past few hours to find
what I'm looking for as I hate posting unnecessarily. I am a pretty
crap searcher but I'm kinda sure this hasn't been written about yet.
Please feel free to prove me wrong and link to a solution....
|
by: johnb41 |
last post by:
I'm using .NET 2.0.
My form is displaying the webbrowser control, which is displaying some
HTML text. When printing with webbrowser.print(), my printout includes
the header and footer.
How can I remove the header and footer from the print out? Can this be
done?
If i can suppress the header and footer, i think this might be a really
|
by: Andrew Meador |
last post by:
I have implemented a printing scenario where an html file is
printed using the the following code:
public void PrintHtmlFile(string url)
{
RegistryKey IERegKey;
string header = null;
string footer = null;
object o = null;
InternetExplorerClass ie = null;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |