Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-04-2005, 09:39 AM   #1 (permalink)
freesoft_2000
Code Monkey
 
Join Date: Oct 2004
Posts: 51
freesoft_2000 is on a distinguished road
Question Attributes

Hi everyone,

I have a question to ask about printer attributes. I am using the PrintRequestAttributeSet class and am a bit confused as to whether i will still have to use the PageFormat class to set the page format of my printed page.

See this below function

Code:
public void prt( )
{
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet( );

prnJob = PrinterJob.getPrinterJob( );
PageFormat format = prnJob.defaultPage( );

//Do i still have to include the format in the below statement or
//can i leave it out

prnJob.setPrintable(myprintableclass, format);

if (prnJob.printDialog(aset) == false)
{
return;
}

prnJob.print(aset);
}

Basically i don't know that if i use the PrintRequestAttributeSet class the will page format will be passed to the printable like the PageFormat class
like its statement above

Code:
prnJob.setPrintable(myprintableclass, format);
I hope i have not confused you guys

I hope someone can help me with this confusion of mine

Thank You

Yours Sincerely

Richard West
freesoft_2000 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
extended attributes joe_bruin Windows 2 07-14-2003 02:22 PM


All times are GMT -8. The time now is 10:53 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting