PC Review


Reply
 
 
appearinggalaxy
Guest
Posts: n/a
 
      1st Mar 2005
Hi,

I am trying to churn out some statistical data from database and
print it out by using printdocument and printdialog, but I realised
that the alignment of the data is gone, for instance, I use "vbTab",
but seems like it does not take effect on preview screen.

I am vex on this issue and would like to ask for the advice from
anyone who knows how to develop a good reporting module by using .net
printdocument and printdialog.

Thanks.


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
 
Ron Allen
Guest
Posts: n/a
 
      1st Mar 2005
I do a lot of reports using PrintDocument and you just have to align the
items yourself. I set up an array of horizontal indents and vertical
positions and use these to draw on the printable area. Just pass in your
data in an easily parsable format and this works fine. I use XmlDocument
objects to contain the printing data since we have to send reports between
offices and this allows sending a simple file attachment. I paginate the
data before putting it into the deliver document and have specialized
PrintDocument classes for each document type to be printed. When printing I
just navigate through the DOM elements contained in each page element and
place them as desired.
This methodology makes it easier for me as I don't have to emit all the
elements in a specific order as they are selectable using SelectSingleNode
or SelectNodes for navigation.

Ron Allen

"appearinggalaxy" <(E-Mail Removed)> wrote in
message news:4223e5a2_5@127.0.0.1...
> Hi,
>
> I am trying to churn out some statistical data from database and
> print it out by using printdocument and printdialog, but I realised
> that the alignment of the data is gone, for instance, I use "vbTab",
> but seems like it does not take effect on preview screen.
>
> I am vex on this issue and would like to ask for the advice from
> anyone who knows how to develop a good reporting module by using .net
> printdocument and printdialog.
>
> Thanks.
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing more than five pages (30+ slides) of handouts makes an oldHP LaserJet 6P printer stop printing. Ant Microsoft Powerpoint 1 23rd Mar 2009 11:09 AM
Re: Epson R200 catching corners of photo paper while printing! ARGH!skewing image while printing! HELP Arthur Entlich Printers 0 12th Dec 2004 04:21 PM
Re: Epson R200 catching corners of photo paper while printing! ARGH! skewing image while printing! HELP Nodge Printers 0 11th Dec 2004 11:39 PM
suddenly printing very small email messages, how to control printing fonts? niteowl Microsoft Outlook Printing 0 19th Oct 2004 02:58 PM
Good color/composite doc Printing AND Cost-Effective B&W Printing in ONE Printer? Glum Sp Printers 0 1st Oct 2003 01:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:39 PM.