473,769 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing headers and footers in vb.NET

Jim
This should be easy, but I have not found much that makes sense. My
application creates a document, of indeterminate length, and prints the
document. I am printing from a saved document in RTF format or directly from
a RichTextBox.

I need to add a footer to the document that displays the page count.
Counting the pages is not a big deal but the footer is driving me crazy.

My reasearch only has gotten me bits and pieces of information, just enough
to confuse me. Can anyone direct me to a good source or provide me with
sample code? I can't use Crystal Reports becuase of allignment problems and
fixed width text for a professional document is not acceptable.

Thanks for your help
--
Jim
Nov 21 '05 #1
1 3604
Hi,

http://msdn.microsoft.com/library/de...ichTextBox.asp

Ken
-------------------
"Jim" <Ji*@discussion s.microsoft.com > wrote in message
news:4E******** *************** ***********@mic rosoft.com...
This should be easy, but I have not found much that makes sense. My
application creates a document, of indeterminate length, and prints the
document. I am printing from a saved document in RTF format or directly from
a RichTextBox.

I need to add a footer to the document that displays the page count.
Counting the pages is not a big deal but the footer is driving me crazy.

My reasearch only has gotten me bits and pieces of information, just enough
to confuse me. Can anyone direct me to a good source or provide me with
sample code? I can't use Crystal Reports becuase of allignment problems and
fixed width text for a professional document is not acceptable.

Thanks for your help
--
Jim
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1125
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.
7
3132
by: Kamilche | last post by:
I'm pretty desperate to get color syntax printing. I just tried out the evaluation version of 'Komodo', which several people in here suggested, and its print features are terrible. The text is coming out huge when I print at 8 point, tiny when I'm printing at 14 point (so tiny that it looks like subscripts), the margins are reset at random, and so on. Plus it doesn't recognize all my fonts. I don't care if the pretty printer is in an...
3
6883
by: will | last post by:
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
28
14055
by: reneecccwest | last post by:
hello, how can I remove IE headers and footers when I print a page? I'd like to use a code to remove them, not thru the IE page setup. s/RC
2
12488
by: gerb | last post by:
Hello, I realise this is not a pure Javascript question, and that VBscript is probably involved at some point, though not as much as I fear. If you opened this item looking for a pute Javascript question, I'm sorry. For an IE6 intranet application I'm running into some problems regarding printing screens from the browser. The specs dictate these requirements:
7
2499
by: Dennis C. Drumm | last post by:
I was wondering if someone could suggest were/how I could get started with setting up printing of a collection of text that includes tables from a grid and other supporting information about the grid's contents. If you could just point me at the classes that I should consider and some very broad guidelines that would be great. For instances, would a good approach be to build an rich text document somehow with the proper formatting and then...
2
1940
by: JP | last post by:
Hi, I need my VB.NET web app inventory system to be able to print barcodes to the client machine's secondary (zebra barcode) printer. I've been told this isn't possible, also that it's possible only w/ Active-X objects - are either of these true? Any ideas? Thanks!
4
1897
by: Al Jones | last post by:
Well, hopefully that title get someones attention. In this old gwbasic program I've converted I *have* sucessuflly converted it to print to a file and the output is acceptable. From there I have printPreview and (what is it) PrinDocument working. All of the references I've found (to include several books) show that method of printing ... my question - is it not possible to print the document 'on the fly' to allow proper paging, page...
3
3760
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to print the current contents of the browser without bringing up the print dialog. At first I thought it was a simple matter to have the button's "onclick" attribute set to "window.print();". However, that always brings up the print dialog box. ...
3
1913
by: Jay | last post by:
Hi, I have this problem with DataGrid printing. I have a page which contains only DataGrid. When i try to print the page, only 1st page contains the verticle and horizontal lines of the grid. The rest of the pages do not contain any lines.
0
9590
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10223
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10051
jinu1996
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10000
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8879
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.