• Post Reply 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending Fax

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
import java.awt.*;
import java.io.*;
import com.java4less.rfax.*;
import java.util.*;
public class se{

public static void main(String[] args) {

TextFaxProducer p= new TextFaxProducer();
p.text="hai";

p.pageImage=createImage(800,550);// here i got error..
p.prepare();

FaxModem m=new FaxModem();
m.setPortName("COM1");
m.faxClass=2;



m.ATFlowControlRTSCTS="AT&K3";


m.resolution=m.RESOLUTION_NORMAL;

m.open(p); //
if (m.sendFax("123456789")){ System.out.println("Success ***"); }
else {System.out.println("Failure: " + m.lastError);}

m.close();

}
}
ERROR
se.java:12: cannot find symbol
symbol : method createImage(int,int)
location: class se
p.pageImage=createImage(800,550);
^
1 error

whether my program is correct or not
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please edit your post to UseCodeTags. It's unnecessarily hard to read the code as it is, making it less likely that people will bother to do so.

The error message tells you that the class does not have a createImage method (which your code is calling). Did you mean to call the createImage method of some other class/object?
reply
    Bookmark Topic Watch Topic
  • New Topic