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-06-2005, 12:14 PM   #1 (permalink)
freesoft_2000
Code Monkey
 
Join Date: Oct 2004
Posts: 51
freesoft_2000 is on a distinguished road
Question Properties

Hi everyone,

I have a question about the java multi-platform print dialog.
I am able to show the dialog but here is the kicker in i am unable to select the printer properties on the print dialog. The printer properties button seems to be always disabled.

This does not happen when i use the platform specific print dialog. The combo box contains the correct printer name but i don't know why i am unable to select the printer's properties

This is what i am doing to call the multi-platform print dialog

Code:
public void prt ( )

PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet( );

try
{
PrinterJob prnJob = PrinterJob.getPrinterJob( );

prnJob.setPrintable(myprintableclass);

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

//The below command line prints out the document if the user clicked Ok

prnJob.print(aset);
}

catch (PrinterException e)
{
e.printStackTrace();
}

}
There are no exceptions thrown and the program compiles with no errors.

I do not know what to do and maybe i could be missing something and would appreciate any help or suggestions.

Any help is greatly appreciated

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
Accessing a value in a .properties file fightingillini Java 1 01-07-2005 05:46 PM
sorting objects arrays by object properties sde Java 28 08-05-2004 05:51 AM


All times are GMT -8. The time now is 08:23 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