Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

help in java printing

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
hello im completly new in java printing and there are alot of things which i dont understand but i have something which I have to make it work...
my problem is that i want to make a text file print from my program...
after searching the net, i tried the following code:



but it gave this problem :
Exception in thread "main" java.lang.IllegalArgumentException: services must be
non-null and non-empty
at javax.print.ServiceUI.printDialog(Unknown Source)
at Printing.main(Printing.java:15)

what is the problem ???
how to solve it ???
how to print a text file ???
where to get deeply explained things about java printing for newbies ???
thanks for the help...
 
Bartender
Posts: 612
7
Mac OS X Python
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Well you could try searching in a forum (say JIG beginning) for (say 'java printing' ) and you might run across something like this:

https://coderanch.com/t/389167/java/java/PRINT-WELL-FORMED-DOCUMENT-SCRATCH

Go to the last post and follow the link to the series of articles - repost if this isn't enough information to get you started.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't crosspost.
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic