public int print(Graphics g,PageFormat page,
int pageIndex)throws PrinterException{
g.drawString("your text flows here........",50,50);
if(pageIndex<=1)return PAGE_EXISTS;
else return NO_SUCH_PAGE;
};
}
hello
thank you for reply si quickly. My problem is that I must print no a text line but all text file and structure of file (like number of lines) must be preserved. So if i put all my file in string so everything is collapsed. So I'm looking for method for printing not a string but all file...
please help...
Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.