Weird problem with printing
When i set the content on the print page, i call the drawString method to draw the sentences, however it it seems the method is not called within this for loop ?? I have tried other loops and it works. However this example doesnt work. Any idea why ?
I have a object called paper which returns a string, x and y coordinates. i call these methods and it returns me the respective values for me to drawString.
However, "test2" is being printed out. "test" is not even printed out.
public int print(Graphics g, PageFormat pf, int page) throws PrinterException{
if (page > 0) {
return NO_SUCH_PAGE;
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pf.getImageableX(), pf.getImageableY());
g2d.setColor(Color.GREEN);
for(int i=0; paper.hasMoreToPrint(); i++){
g2d.drawString("test", 150, 150);
String content = paper.getContent();
int x = paper.getX();
int y = paper.getY();
System.out.println(content + " " + x + " " + y);
g2d.drawString(content, x, y);
g2d.drawString("test2", 50, 50);
return PAGE_EXISTS;
}any tips to solve this ? all comments are greatly appreciated.. thanks .. need for school project
yeah, i've looked into that... i had that system.out.println and it prints out the correct String, int x and int y for the drawString method... however i dont know why it doesnt work... the loop runs... even g2d.drawString("test", 150, 150); doesnt draw it .. i had other for loops and it works.. this one doesnt
Similar Messages
-
Apple Banned me, because of a very weird problem with my "Factory Unlocked"
Hi Everybody! Im having a very weird problem with my unlocked iphone 4.
First of all, i would like to apologize because of my english, is not very good. My native language is Spanish.
Well.. Im from Mexico, and here we can buy the iphone Unlocked on the Apple Online Store.
Here's my problem. Apple has exchanged my iphone 3 times.
I returned the iphone the first time because the screen was totally yellowish, other than that everything was working great!, that was by the end of September.
On October 20th, i recieved my second iphone, and then a bigger problem started .
Before i continue, let me give you this information: here in Mexico we have basically 3 cell phone companies
1.- Telcel
2.- Movistar
3.- Unefon
OK, now on october 20th, i recieved my second iphone, and then procced to activate via itunes using my UNEFON sim card (microsim).
And every time i tried to activate it, only got this message onscreen:
http://i148.photobucket.com/albums/s2/jorgelomeli/Screenshot2010-10-29at24915PM. png
I though something was wrong with my brand new factory unlocked iphone 4.
I have 4 more simcards from my brothers (they all had iphone 4 too)
I tried telcel sim card, and i could activate my iphone. Then i insterted the Movistar microsim, and it worked too!! But then when i put the Unefon sim, the itunes logo inmediatly appears on the screen asking to activate on itunes, and when i tried that, the only response i got was the image above saying " The Simcard inserted on this iphone does not appear to be supported"
Weird thing here is, that, when i put my Unefon sim card on my brothers iphone 4, it worked great! on all of them, internet 3g, phone, wireless , evrything!
I called apple support, and they exchange the iphone for another one.
I recieved the third iphone on October 29. Last friday. and guess what? SAME PROBLEM! different serial number, same week production (week 42) but exactly the same message on itunes.
Very, very frustrated, i called apple again, and after 1 hour with thechnical support, they told me " We are sorry, but we can only offer you, your money back, NO MORE EXCHANGES FOR YOU"
I said why?... i dont want my money back! i want an UNLOCKED iphone!, but they refuse to give me another iphone.
When i asked techincal support, why my unefon sim card worked great on all three of my brothers iphone but not on mine, he just told me, "I really dont know, i guess they just got lucky" ****, this answer put all my trust i had on apple products for years, right on the garbage.
Since they refused to give me another iphone, i accepted my money back, and inmediatly after i finished the call, i asked my brother to buy me one more time an iphone 4 using his name, and his credit card. Now i have to wait until November 8-12 to recieve my new iphone, hoping this time i get a REAL UNLOCKED iphone, and not a partially unlocked iphone.
btw. i even went to Unefon costumer service and bought a new prepiad line, with a new microsim, just to be 100% sure that this problem is not because of the sim. And again didnt worked on my iphone, but it worked on any of my brothers iphone4.
Serial numbers of the 3 iphones:
79039C0U* (this one worked great with Unefon, only problem was yellow screen)
85042GR4*
81042FJB*
What do you suggest me? any info would be really aprecciated
FYI i also restore 4 times the last iphone and nothing seemed to work, i use 3 different computers, Macbook Pro, iMac, and an Hp with Windows 7, and the same message on all three computers.
Wierd thing also, one of my brothers bougth an iphone 4 this last week too, but he bought the 16Gb not the 32Gb. His iphone production week is 42 also! and when i put my Unefon sim in his iphone works great!
I dont know what else i can do, I just need to have faith that my new iphone coming this november will be real unlocked, but what if i'll recieve an iphone and then the same problem?? time for android? just kidding really guys, what can i do? anyone with similar problem like me? i dont wanna use Telcel or Movistar, i wanna use Unefon, and thats why i bought an Unlocked iphone
btw: jailbreak is not a solution for me, because i always like to use legal software on all my apple products, and because of the warranty.According to http://support.apple.com/kb/HT1937, there are two official carriers in Mexico (Movistar and Telcel) and neither carrier offers an unlocked phone.
-
HP Officejet Pro 8600 "Problem with Printer or Ink System'
A gander at this forum suggests I am one ofa multitude of people perplexed by this issue. There is a notation beside one enquiry which says 'Problem Solved'.... well it isn't for me. My printer (typical!) is one month out of warranty. I had to replace the black cartridge and, when I did, it came up with this error prompt. I then replaced all the other cartridges. HP suggests removing the printhead and following that they say place it 'upside down on a clean sheet of paper'... NO instructions for cleaning it!! When it is replaced in the printer they suggest you 'rock the printhead left and right to make sure that the printhead fully seats in the carriage' and if THIS doesn't fix things 'try reseating the printhead up to 3 times'... This in itself is an admission of an 'issue' with this product. It doesn't sound like a very scientific engineering 'fix' to me!
A new printhead costs almost what we paid for the printer a year ago. I hate consigning anything to landfill that I can avoid... unfortunately it looks like that is where this unit belongs...Hi @Robin_Perth,
Welcome to the HP Forums!
I am sorry to hear about you getting the problem with printer or ink system error, with your HP Officejet 8600, but I am happy to look into this for you!
I am assuming you have already been through this guide, A 'Problem with Ink System' Error Message Displays on the Control Panel or Computer During Setup.
If this guide does not resolve the issue, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Country-language selector.
This guide, Limited Warranty for HP Ink Cartridges and Customer-Replaceable Printheads for HP Inkjet Supplies, will help you to determine if your printhead is still in warranty or not.
Hope this helps!
RnRMusicMan
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" to say “Thanks” for helping! -
HP 4622 All in One Printer: Problem with Printer or Ink System
Problem with Printer or Ink System Error OXC19a0027.
charleshia wrote:
Thanks so much for replying to my post. I tried the fist suggestions and they did not work. So, I attempted to move on Dow to the cleaning of my printer. I am the the first to admit that I'm not the genius when it come to electronics buys, my printer do not seem to have what is described in the photos. I'd like to upload a photo of my ink cartage but do not know how.
Charleshia, you can upload a photo here to reply. Click Reply, then on the window you'll see the image below..
click the one which has the red box, it's where you insert the photo
Going back on your issue.. the basic step would be.. take out the inks then close the door... what error message you got? If it's saying "Missing Ink Cartridge" just hit OK. Unplug the power cable at back of the printer, plug it back in.. Clean the copper contacts on the ink cartridges using a lint free cloth then reinstall them. Let me know if it resolved it or not.. I can only give basic troubleshooting here -
Hi All,
I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
I have a problem with printing a PDF:
I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
Can anyone help me?
I wish a great day to You all.Hi Ted Ueda,
sorry for the delay of my answer.
I understand very well the problems related to security.
With the following code that I used to produce a report (PDF) at runtime,
is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
from RTF previously realized?
ReportExportControl exportControl = new ReportExportControl();
String report = report path;
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
Object reportSource = null;
reportSource = reportClientDoc.getReportSource();
//The method setConnectionProperties() stores all the connection parameters in the collection
//ConnectioInfos
ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
exportControl.setEnableLogonPrompt(false);
exportControl.setEnableParameterPrompt(false);
exportControl.setReportSource(reportSource);
exportControl.setDatabaseLogonInfos(connInfos);
//Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
//ParameterFieldDiscreteValue
setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
ExportOptions exportOptions = new ExportOptions();
//Set the export format (PDF)
exportOptions.setExportFormatType(ReportExportFormat.PDF);
PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(PDFExpOpts);
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
try {
exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
} catch (ReportSDKExceptionBase e) {
throw new ApplicationException("error code", ": error message"); }
As, however, I predicted in my previous message about the direct printing on the client,
I read about ActiveX, but I don't know how to use them.
I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
"In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
1) AcroRd32.exe /p /h FILENAME
where
/p = print
/h = hide window
to print the report and
2) tkill AcroRd32
to close Adobe Reader, because it doesn't end automatically after printing and the command /h is used just to minimize the process.
I hope you can give me advice because I need to print directly on the client. Thank you -
Problem with printing pdf file
hello,
lately i have problem with printing pdf file:
i click on the print button and the respod is very slow
it takes more than a minute till the print window apears.
i tryied to install version X but it's the same, the problem exist only when printing via adobe reader,
other programs i'd working much faster.
please advice,
thank youNo, it is not set to overprint. Also, I have to add that the printing results were not consistent. Sometimes it covered and sometimes it did not.
-
Problem with printing files created by tcpdf class
Hello,
I have problem with printing pdf files created with tcpdf php class which contain embedded fonts
http://www.tecnick.com/pagefiles/tcpdf/example_008.pdf
Could someone try to print that example file at his Reader (printing to file .ps will be fine).
I'm trying to determinate if problem is in my system (Ubuntu 8,04) in Reader or in class.
Thanks in advanceNo problem with Adobe Reader 8 or 9 .
-
Problems with printer and network connectivity
So I've been using an HP B110a photosmart wireless e-all-in-one printer that I got with my macbook pro and at the start, everything worked perfectly in terms of wireless printing, ePrint, and AirPrint. But recently, when I try to print wirelessly, it says the printer is not connected and I also can't find it on the list of nearby printers on the 'add printer' window. I also had problems with printing via ePrint but those have cleared up (I don't know what was wrong but it's fine now). Printing with AirPrint on my iPod touch has stopped working as well because the printer doesn't show up when I search for nearby printers.
Here's what I've checked/tried so far:
All the wireless services are enabled on my printer and my mac
I've reset the printing system on my mac, printer settings to factory defaults
Restarted mac/printer/iPod
Restarted router
Reinstalled HP printing software that came with the printer
All software is up to date
Wireless printing on another windows computer does work
Setting up wireless printing using the HP install disc doesn't work
Trying to add a new printer using the HP software disc that came with the printer is unsuccessful in locating the printer as well.
Printing over USB is problem-free
When I tried restarting the printer/router, I could see the printer for just a few minutes in the 'add printer' list but then it would disappear from the list and the printer would be 'not connected' so I can't print wirelessly.
More info
MacBook Pro (13 inch, early 2011)
Mac OS X Lion (10.7.2)
HP Photosmart e-All-in-One B110a
Router is a Huawei HG556a that I got from Vodafone NZ
Thanks in advance!http://support.apple.com/kb/DL907
-
Hiya, I've got a weird problem with my iPhone4. On the 'home page' of my iPhone the mail symbol tells me there's a new mail waiting for me. However, there's no new mail to be found. Does anyone know what the problem is? Thanks
This response is a little late as I just read about your problem. I have a 2012 Dodge Charger and a 2012 Chrysler Town and Country and both worked flawlessly with the iPhone 5s my wife and I had. However, we just upgraded to the iPhone 6 and Uconnect will receive calls but you cannot answer them. You can callout successfully, however. the annoyance being the inability to answer incoming calls in the HandsFree mode.
-
Problem with printing ALV lists
Hey Guys,
I have a problem with printing ALV lists ,
I created a report with several ALV lists (not grids) on the same screen but when i attempt to print the report
it prints each alv list on a different page..so if i have 3 alv lists in the same report it will print the report on 3 pages
How can i print them all in one page?
Thanks in advance
Noha Salah.Hey Max,
I tried setting the Layout-list_append before my block_list_append function call
And setting the is_print-NO_NEW_PAGE , it printed the 3 lists on one page the only problem i have
is that the lists are truncated and the list formats has totally been messed up..how can i restore them back
to their original format? -
I had a problem with print preview of billing document.
HI all,
I had a problem with print preview of billing document which contains two output types ZR1 ZR2..
For the footer text of billing document I maintained the font size as 7,5 pts, But when i go for print preview from output type ZR1 the font size of footer text is very small and looks good for output type ZR2.
If i change the print options-->logical destination of output type ZR1 same as Output type ZR2, the footer text looks good.
I think there is some issue with logical destination in print options for the output type ZR1, how can i resolve it.hi,
for both the output types , r u using same sapscript or smartform?
if yes then, u can control it in output options of smartform and also in sapscript , you can control through if condition.
and if differect sapscript or smartform then you should not get such problem.
you can check the sapscript or smartfrom in TNAPR table. -
Problem with printing graphics in SAP Script
Hi,
I am facing problem with printing of graphics in SAP Script. I uploaded a bitmap file from pc to se78. Then I inserted it in SAP script.
I am able to view it in the printpreview as well as in the spool number. But it is not getting printed.
Plese tell me the solution.
Thanks,
SrinivasYou need to check your printer settings.Might be drivers are missing.
-
Problem with printing from Acrobat Reader XI
SInce I installed Acrobat Reader XI I have got problems with printing out pages. The text starts a bit down (2 cm) on the paper, resulting that the last part of the text on the page will be missing. And the missing part does not follow on page 2, it just don´t comes out!
It doesn´t matter what settings i click in on the print setting page in Acrobat Reader, it always gets the same result.
Does anyone know what can be the problem?No files appeared in C:\Users\Pavilion\AppData\Roaming\Adobe\Adobe PDF\Settings but they did appear in Distiller.
I tried to copied them from C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Settings, but found they were already there. I copied them by adding -COPY before .joboptions in the name. Now they appeared in Printing Preferences with the -COPY added.
I tested a print from Word (using File / Print), but was not prompted for the filename or location. I checked my entire system and couldn't find the PDF file anywhere. I tried changing the Port to Desktop\*.pdf using Printer Properties, but that didn't work either.
I was able to successfully use the Acrobat menu item in Word & Excel to create a PDF but it automatically created the file on the Desktop without an option to change the filename.
After several days and hours, I gave up and installed Acrobat X on the W7 computer. I can still use Acrobat XI on the W8 computer. So be it!
Thanks anyway for your attempts to help. -
Problem with printing true colors
Had PSE7 and colors printed true and beautiful. Upgraded to PSE10 and all of a sudden colors printed muddy and dull with purplish overcast. Took printer in for service but problem persisted. Upgraded to PSE11 and once again colors were printing true and beautiful for over a year. Printed a card about 5 days ago using PSE11 - beautiful. Printed a card yesterday using PSE11 and colors muddy and dull with purplish overtones. Installed PSE13 and colors printing dull, muddy with purplish overcast.. I feel it is a problem somewhere in settings of PSE, but can't figure out where. I don't think it is a problem with printer. Both printer and PSE set to Adobe RGB. Color control set to optimize for printer. Using PC with Windows 7, 64 bit. Printer is Epson stylus photo 1400. Thanks for any help, Merrie
See if this helps:
http://helpx.adobe.com/photoshop-elements/kb/color-management-settings-best-print.html -
Problem with printing more than one page (ghostscript broken?)
Hello,
since one of the last package updates I have problems with printing more than one page. The print problems occurs as well with pdf files as well with printing websites. I use an actual KDE system with commercial turboprint printer driver. The first page always prints fine, but all consecutive pages are corrupted. As from a similar problem some months ago, I assume a broken ghostscript package. I tried to downgrade ghostscript to check that, but I get depency problems:
root@arch32 dieter]# ls -l /var/cache/pacman/pkg/ghostscript-*
-rw-r--r-- 1 root root 9906288 21. Mär 2010 /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
-rw-r--r-- 1 root root 11402624 8. Okt 22:44 /var/cache/pacman/pkg/ghostscript-9.00-1-i686.pkg.tar.xz
[root@arch32 dieter]# pacman -U /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
Löse Abhängigkeiten auf...
Suche nach Zwischen-Konflikten...
Fehler: Konnte den Vorgang (Kann Abhängigkeiten nicht erfüllen) nicht vorbereiten
:: libspectre: benötigt ghostscript>=9.00
[root@arch32 dieter]#
Anyone else having printing problems or a solution for my problem?
Thanks, DieterThis may not be related but I had a problem printing a pdf today whereby the second page got corrupted. The same pdf had printed fine several months ago. I realised that (long story) for some reason I had switched drivers (HP printer) from hpijs to hpcups. I installed the printer again as a "new" printer using the hpijs driver and it printed properly this time.
So it may be that the bug causes issues with some drivers. You could try an alternative driver for the printer as temporary workaround?
Maybe you are looking for
-
I want to move pictures to a external hard drive. How do I do that?
My 150 GB MacBook hard drive is nearly full. I want to move pictures off my hard drive to an external hard drive to access them later. I bought a 1 TB external hard drive and have time machine set up on my computer. I am beginning to think that the
-
Problem with editing Aperture photos with Photoshop Elements 10
When I try to edit with Photoshop Elements 10, Aperture makes a tiff file, starts Photoshop Elements 10 and get to a screen where I have a choice between "editing" or "managing" files. I select editing but when i finally get the editing screen there
-
What is the best way to add photos to Imovie6 to retain quality?
When importing to timeline viewer, photos when previewed appear to be of less quality. I have tried scaling 620x480, with similar results. Previewing on a macbook pro. Is it the previewing? What is the best (recommended) method for placing stills int
-
Installing Elements 11 on Mac 10.8.2. Need help with install error: Setup wants to make changes. Type your password to allow this." After entering Adobe password, nothing happens. Locked from further installation. Any ideas? Adobe phone support
-
Business Scenario on EBP,ROS and SUS
Hi friends can any one send me a business scenario document so that EBP, ROS and SUS exist Please mail to vinaykrishna007 at gmail Regards Krishna