Problem with client side printing
hi ,
am using struts and jasper reports on my project, now i was having problem that whenever i try to print the report , the printer dialogue box was appearing on server machine, i want it on client end, how to solve this problem, please any one know help me, it was urgent,
my code was like this
JasperCompileManager.compileReportToFile("c:/report/test.jrxml","c:/report/test.jasper");
JasperPrint jasperPrint = JasperFillManager.fillReport("c:/report/test.jasper"),parameters,con);
List l=jasperPrint.getPages();
if(l.size() != 0){
jasperPrint.setOrientation(JasperReport.ORIENTATION_PORTRAIT);
jasperPrint.setPageHeight(877);
jasperPrint.setPageWidth(963);
JasperPrintManager.printPages(jasperPrint,0,l.size()-1,true);
}thanks in advance,
Throw away the code that generates a JasperPrint object and tries to print it. (All of the code, in other words, except maybe the first line.) As you found, that tries to print on the machine where the code is running. Replace it by Jasper code that produces PDF or HTML, and send that as the response. Let the person sitting at the browser deal with printing it if they want.
Similar Messages
-
Problem with client side printing, please help its urgent
hi ,
am using struts and jasper reports on my project, now i was having problem that whenever i try to print the report , the printer dialogue box was appearing on server machine, i want it on client end, how to solve this problem, please any one know help me, it was urgent,
my code was like this
JasperCompileManager.compileReportToFile("c:/report/test.jrxml","c:/report/test.jasper");
JasperPrint jasperPrint = JasperFillManager.fillReport("c:/report/test.jasper"),parameters,con);
List l=jasperPrint.getPages();
if(l.size() != 0){
jasperPrint.setOrientation(JasperReport.ORIENTATION_PORTRAIT);
jasperPrint.setPageHeight(877);
jasperPrint.setPageWidth(963);
JasperPrintManager.printPages(jasperPrint,0,l.size()-1,true);
}thanks in advance,Double post.
-
Having problem with client side Authentication.
Hi,
I am haveing a problem enabling client side authentication with SSL on
weblogic 5.1.
I have set up the .properties files as explained, however it appears
my client is not sending a certificate back to the server. The same
client however works perfectly (using the same keystore file) with a
sample ClassFileSErver webserver from the jsse distribution. (the
client is a very slightly modified version of
SSLSocketClientWithClientAuth sample that comes with Jsse)
Below I've included a section of the debug dump from the interactions.
The only other difference I can see is the cipher suites offered by
the servers.
Weblogic offers type 0 or 9, and agrees on type 9
(SSL_RSA_WITH_DES_CBC_SHA), whereas ClassFileServer offer type 0 or 5
and settles on type 5 (SSL_RSA_WITH_RC4_128_SHA).
I am using the same keystore for both examples. Both servers request
an RSA client cert.... I'm out of ideas.
Any help would be greatfully received.
Cheers,
Keith
Debug dump information
=====================================
1/Weblogic server.
*** CertificateRequest
Cert Types: RSA,
Cert Authorities:
<CN=K H, OU=itsmobile, O=itsmobile, L=Dublin, ST=Dublin, C=ie>
<[email protected], CN=Demo Certificate Authority,
OU=Security, O=BEA WebLogic, L=San Francisco, ST=California, C=US>
<CN=Thawte Test CA Root, OU=TEST TEST TEST, O=Thawte Certification,
ST=FOR TESTING PURPOSES ONLY, C=ZA>
[read] MD5 and SHA1 hashes: len = 427
0000: 0D 00 01 A7 01 01 01 A3 00 67 30 65 31 0B 30 09
.........g0e1.0.
0010: 06 03 55 04 06 13 02 69 65 31 0F 30 0D 06 03 55
..U....ie1.0...U
0020: 04 08 13 06 44 75 62 6C 69 6E 31 0F 30 0D 06 03
....Dublin1.0...
0030: 55 04 07 13 06 44 75 62 6C 69 6E 31 12 30 10 06
U....Dublin1.0..
0040: 03 55 04 0A 13 09 69 74 73 6D 6F 62 69 6C 65 31
.U....itsmobile1
0050: 12 30 10 06 03 55 04 0B 13 09 69 74 73 6D 6F 62
.0...U....itsmob
0060: 69 6C 65 31 0C 30 0A 06 03 55 04 03 13 03 4B 20
ile1.0...U....K
0070: 48 00 AC 30 81 A9 31 0B 30 09 06 03 55 04 06 13
H..0..1.0...U...
0080: 02 55 53 31 13 30 11 06 03 55 04 08 13 0A 43 61
.US1.0...U....Ca
0090: 6C 69 66 6F 72 6E 69 61 31 16 30 14 06 03 55 04
lifornia1.0...U.
00A0: 07 13 0D 53 61 6E 20 46 72 61 6E 63 69 73 63 6F ...San
Francisco
00B0: 31 15 30 13 06 03 55 04 0A 13 0C 42 45 41 20 57
1.0...U....BEA W
00C0: 65 62 4C 6F 67 69 63 31 11 30 0F 06 03 55 04 0B
ebLogic1.0...U..
00D0: 13 08 53 65 63 75 72 69 74 79 31 23 30 21 06 03
..Security1#0!..
00E0: 55 04 03 13 1A 44 65 6D 6F 20 43 65 72 74 69 66 U....Demo
Certif
00F0: 69 63 61 74 65 20 41 75 74 68 6F 72 69 74 79 31 icate
Authority1
0100: 1E 30 1C 06 09 2A 86 48 86 F7 0D 01 09 01 16 0F
.0...*.H........
0110: 73 75 70 70 6F 72 74 40 62 65 61 2E 63 6F 6D 00
[email protected].
0120: 8A 30 81 87 31 0B 30 09 06 03 55 04 06 13 02 5A
.0..1.0...U....Z
0130: 41 31 22 30 20 06 03 55 04 08 13 19 46 4F 52 20 A1"0
..U....FOR
0140: 54 45 53 54 49 4E 47 20 50 55 52 50 4F 53 45 53 TESTING
PURPOSES
0150: 20 4F 4E 4C 59 31 1D 30 1B 06 03 55 04 0A 13 14
ONLY1.0...U....
0160: 54 68 61 77 74 65 20 43 65 72 74 69 66 69 63 61 Thawte
Certifica
0170: 74 69 6F 6E 31 17 30 15 06 03 55 04 0B 13 0E 54
tion1.0...U....T
0180: 45 53 54 20 54 45 53 54 20 54 45 53 54 31 1C 30 EST TEST
TEST1.0
0190: 1A 06 03 55 04 03 13 13 54 68 61 77 74 65 20 54
...U....Thawte T
01A0: 65 73 74 20 43 41 20 52 6F 6F 74 est CA Root
main, READ: SSL v3.0 Handshake, length = 4
*** ServerHelloDone
[read] MD5 and SHA1 hashes: len = 4
0000: 0E 00 00 00 ....
main, SEND SSL v3.0 ALERT: warning, description = no_certificate
main, WRITE: SSL v3.0 Alert, length = 2
And below is a sample when I used the ClassFileServer.
This time the client (same src) returned a certificate.
2/ClassFileSErver (from Sun Jsse distribution)
*** CertificateRequest
Cert Types: DSS, RSA,
Cert Authorities:
<CN=K H, OU=itsmobile, O=itsmobile, L=Dublin, ST=Dublin, C=ie>
[read] MD5 and SHA1 hashes: len = 114
0000: 0D 00 00 6E 02 02 01 00 69 00 67 30 65 31 0B 30
...n....i.g0e1.0
0010: 09 06 03 55 04 06 13 02 69 65 31 0F 30 0D 06 03
...U....ie1.0...
0020: 55 04 08 13 06 44 75 62 6C 69 6E 31 0F 30 0D 06
U....Dublin1.0..
0030: 03 55 04 07 13 06 44 75 62 6C 69 6E 31 12 30 10
.U....Dublin1.0.
0040: 06 03 55 04 0A 13 09 69 74 73 6D 6F 62 69 6C 65
..U....itsmobile
0050: 31 12 30 10 06 03 55 04 0B 13 09 69 74 73 6D 6F
1.0...U....itsmo
0060: 62 69 6C 65 31 0C 30 0A 06 03 55 04 03 13 03 4B
bile1.0...U....K
0070: 20 48 H
*** ServerHelloDone
[read] MD5 and SHA1 hashes: len = 4
0000: 0E 00 00 00 ....
matching client alias : rsakey
*** Certificate chainMatt,
Did you read this article:
https://wiki.sdn.sap.com/wiki/display/BSP/Using%20Proxies
This explains how to properly setup the HTTPURLLOC table.
In your case you should have entries that look something like this:
40 HTTP * <internal host name> <https port>
50 HTTPS * <external host name> <https port>
In addition you need to run the report to determine if the proxy configuration is setup properly. The URL should be run with the
https://<externalhostname>/sap/bc/bsp/sap/system_test/test_proxy.htm
Take care,
Stephen -
HP Laserjet 1020 problem with double-side printing
Hi, everyone!
I have a problem with my printer HP laserjet 1020. From the community I know that there is no driver for 1020, but there is for 1022 (http://support.apple.com/kb/DL907). I installed it and everything was fine until I tried to print 2-sided page... It appears 2-sided option disappeared and I don't know how to fix this...
Can anyone help, please?
Thank you for looking.AMW122,
The part in the photograph appears to be part of the fuser assembly. If it is part of the fuser assembly, I would recommend you replace the fuser. An internet search on "LaserJet 3300 fuser" found several links.
From what I can see, it appears that the fuser sleeve is damaged which will continue to worsen.
If it is not the fuser, can you post another photograph further away so that we can see the location on the printer where it is located, etc...
Kaz
Kazman
I am an HP Employee
Say Thanks by clicking the Kudos Star in the post that helped you.
Please mark the post that solves your problem as Accepted Solution -
Problem with Client Side Validator - e.getFacesMessage is not a function
(JDeveloper 11g, TP2 and TP3)
I have created a custom validator that does server side validation as well as client side validation. It gets invoked - an alert is fired to prove that - but when validation fails, instead of the red box and error message that I was hoping for, I get a JavaScript error:
e.getFacesMessage is not a function (all-11-otn2.js (line 27600))
The getClientScript() method in the validator looks like this:
public String getClientScript(FacesContext facesContext,
UIComponent uIComponent) {
return "function GreaterThanValidator(p1)\n" +
"{ this.greaterThanItem=p1; \n" +
"}\n" +
"GreaterThanValidator.prototype.validate = function(value){" +
"alert('value= '+value); " +
" if (!(value=='X')){ " +
" return new ValidatorException('Value must not be X '" +
" +' (current value = '+value+')');}"+
} Can someone tell me what I am doing wrong here? Like I said, the validation is performed, the alert is shown. Then when I raise the ValidatorException, the error occurs.
thanks for any suggestions.
Lucas
Message was edited by:
Lucas Jellema
Message was edited by:
Lucas Jellema
Message was edited by:
Lucas JellemaLucas,
I assume that this post is related to the previous
Display client side validation error message with the pretty box
I forwarded this internally and am waiting for a hint. Will update this post accordingly (or someone else will do directly)
Frank -
Crystal report: client-side printing problem
Hello everyone,
I developed an asp.net web application / c # - VS2012 - crystal Repport (CRforVS_13_0_5) on windows 7 pro 32 bits, everything is ok even print reports.
The problem is that when hosting the web application in IIS on the same machine (Windows 7 pro 32 bit) printing the report (crystal report) does not work;
my code behind:
ReportDocument cryRpt = new ReportDocument;
string path = "../rpt/demande.rpt";
cryRpt.Load(Server.MapPath(@path));
ParameterFieldDefinitions crParameterFieldDefinitions;
ParameterFieldDefinition crParameterFieldDefinition;
ParameterValues crParameterValues = new ParameterValues();
ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue();
crParameterDiscreteValue.Value = "value";
crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields;
crParameterFieldDefinition = crParameterFieldDefinitions["val"];
crParameterValues = crParameterFieldDefinition.CurrentValues;
crParameterValues.Clear();
crParameterValues.Add(crParameterDiscreteValue);
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues);
cryRpt.SetDatabaseLogon(user, pw);
CrystalReportViewer1.Visible = true;
CrystalReportViewer1.ReportSource = cryRpt;
cryRpt.PrintToPrinter(1, false, 0, 0);
how to print the report on the client side?The search term 'crystal net client side print' brings up the following (amongst many other):
KBA: 1214466 - How to print a report from a .NET Web application
KBA: 1216932 - How to print directly to a printer instead of PDF in a CR 10 ASP.NET application
KBA: 1983821 - How to achieve client side printing without using the Crystal Reports viewer
The above should help you out. BTW.; the search box is in the top right corner.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Print text file to client side printer
Hi all,
I have a character mode report which will print to a client side dot matrix printer in 6i. After converted to 10g, we cannot print to the client side printer (because we don't want to map so many print queue from the AS).
So, I try to generate the report to a text file, then use webutil to transfer the txt file to the client PC, and then use Client_HOST to call the window PRINT command to print the text file to the client side printer.
I have test this is successful, however, when I try to do the same thing to a report with Vietnam character, then it is not.
The print request is sent to the printer, but the printer have no response.
But that file can be print successfully if I open in Notepad and then print manually.
I try to use window TYPE command and COPY command, but still have no luck.
Can anyone give me some suggestions for this....
Thanks!Qiu (guest) wrote:
: In the browser/applet, the default "print" button can only
print
: screen to local printer, not the data I want. Use Report
server,
: I can't directly print to client side printer. Is there a way
to
: print data to local printer after press a button?
Are u using Run_Product function in the when button pressed,
then u can specify the format in which u want the output, option
available are HTML and PDF, report server runs the report on the
server and sends the output to the client machine. On the client
machine u have to open the file and print it. I cannot print the
report itself on the client machine.
Try.
Sailesh
null -
Reporting Services Client-Side Printing
All my BI users should be able to print SSRS directly from their Local PC. Right now they do not have administrative rights on their PCs. How do I install the print- client SSRS files on the client machines. Also, what and where are the
files I need to install in order to enable client-side printing. I am using SSRS 2012 SharePoint integrated mode.Check out this article...
http://www.kodyaz.com/articles/client-side-printing-silent-deployment-of-rsclientPrint.aspx
The same concept applies no matter which version of SSRS you are dealing with. You just need to find the CAB file. For SSRS 2008 R2 it is in:
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin -
Link only with client side method for ImageArea
Hi,
I wanted to made an ImageMap and on each ImageArea set Link ONLY with client side method. But it doesnt work, no method is called. (in html is rendered only onClick="return false;"). When i tried to set some server side method it is working(server method is called). Is this righ behavior?
If it is how should code for calling only client side method look like?(now i am writing that map into html by myself, but it is not nice solution ).
And next question related to this, where is defined relationship betwenn htmlb components and java classes rendering them? i wanted to look in implemenattion of imagemap and change it for my purposes but i dont know how.
thanks
JJI had also some problems with the ImageMap.
I ended up by using the "HTML-way"
<map name="Innen">
<area shape="rect" coords="460,46,494,365" href="#" title="W7" alt="W7" onclick='alert("Nicht belegt")'>
<area shape="rect" coords="429,92,457,365" href="#" title="W3" alt="W3" onclick='alert("Nicht belegt")'>
</map>
<img align="LEFT" src=<%= """ + componentRequest.getWebResourcePath()+ "/images/spannbacke_innen.gif" + """ %> width="500" border="0" alt="Karte" usemap="#Innen">
Walter -
Problems with your HP printer after upgrading to Windows 8.1
If you are experiencing problems with your HP printer after upgrading to Windows 8.1 please click on the below link and install the HP Print and Scan Doctor and run the utility to fix the issue.
www.hp.com/go/tools.
I was an HP employee
If I have helped you solve your issue please mark it as solved
**Say Thanks By Clicking on the Kudos Star**Hi.....my laserjet 1536dnf mfp was working perfectly with win 8 pro....then I installed win 8.1 pro and now the computer ,which is part of a network,can not communicate with the scanner of the printer--it prints just fine. On another computer (running win 7 ) on the same network, the scanner and all other printer functions work just fine.
I have tried installing the latest drivers from HP......scanner still not "communicating" with computer.....also temporarily disabled firewall.....please help...all the best -David G (gossat) -
My HP OFFICEJET 8500 PRO was working just fine wirelessly until I installed the Windows 8.1 update from the Microsoft. Now I cannot print at all. I get an error that says, "windows cannot print due to a problem with the current printer set up". I have tried reinstalling and a ton of other solutions to no avail. Can someone PLEASE Help!
Hello there, @jesseangelique ,
Welcome to the Community!
I would love to help you with the printing issue you're having, since the Windows 8.1 that was done.
Please run the Print and Scan Doctor. Write me back with the results or post a screen shot of the results and I will have a look at them.
This diagnostic tool will check for any conflicts that could be causing the issue. The tool will show you a report at the end. If there was a problem that the tool could not fix, you will notice it in the results.
Also, let me know which Officejet 8500 Model you have:
HP Officejet Pro 8500 All-in-One Printer - A909a
HP Officejet Pro 8500 All-in-One Printer - A909b
HP Officejet Pro 8500 Premier All-in-One Printer - A909n
HP Officejet Pro 8500 Wireless All-in-One Printer - A909g
Hope to hear from you!
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
Problem with countinuous paper printing in dot matrix printer
Hi All,
I have problem with dot matrix printer (Devise Type EPESCP) while printing continuos printing. If i am printing 2 or more than that prints at a time, 2nd page is printing 5 lines up.
I have developed one smartform for this and i have used A4 size page format.
I have tried to change the Printer initialization code to 86 lines for DINA4. Still no change in continuous printing.
Printer initialization
Reset after exit
Cover page
First Page
Start of even page
Start of odd page
Start of page
End of first page
End of even page
End of odd page
End of page
Start of line on an even page
Start of line on an odd page
Start of line
End of line on an even page
End of line on odd page
End of line
Printer initialization
# reset
\e\0x40
# select character table 3 -> PC 437 character set
\e\0x74\0x03
# set line spacing 6 LPI
\e\0x32
# set page length 86 lines
\e\0x43\0x46
# cancel bottom margin
\e\0x4F
# set left margin to 0
\e\0x6C\0x00
# select LQ quality
\e\0x78\0x01
# select non-proportional spacing
\e\0x70\0x00
Can any one help me.
Thanks,
VishnuHi Vishnu,
Above you have the following commands:
set line spacing 6 LPI
\e\0x32
set page length 86 lines
\e\0x43\0x46
46 HEX = 70
So the above settings mean 70 lines at 6 LPI = 11.66 inches.
So is the paper length 11.66 inches? If not, you should adjust the settings accordingly.
Regards,
Aidan -
Problem with Photoshop Elements Printing
I have been using Photoshop Elements for a couple of years now and know it pretty well. Today while attempting to print, a strange problem came up: After going through the protocol to make a print, just before the image prints PE does a very fast auto correction that basically ruins all the color correction I have made on the image. How do I disable this function?
Hi and thanks for your reply. I checked the settings under "Print", "More Options", then "Color Management" and it only has "Print Space", none of the three options that you said I should have. Am I looking in the wrong place?
Date: Mon, 3 Sep 2012 11:14:57 -0600
From: [email protected]
To: [email protected]
Subject: Problem with Photoshop Elements Printing
Re: Problem with Photoshop Elements Printing
created by 99jon in Photoshop Elements - View the full discussion
Check your color management by clicking More Options in the print dialog There are basically three options:1) Printer Manages Color2) Elements Manages color3) No color Management Make sure everything is consistent e.g. if you choose Elements manages color make sure color management is switched off in the print driver.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4669848#4669848
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4669848#4669848. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Photoshop Elements by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Cannot print due to a problem with the current printer
Cannot print (anymore) due to a problem with the current printer is the message I get every time I try to print something out. I tried to reinstall the printer's software, I changed the cables, but nothing happened. It seems to be something related to the printer setup utility. Any big idea on how to solve this? I was printing without problems until this afternoon. I have a HP Laserjet 1022 and sometimes I use Adobe Acrobat Writer. None is currently working.
Thanks for any help.
Power Book G4 Mac OS X (10.3.9)I just had the opererational system (10.3.9) reinstalled . Back to normality again.
-
Exchange Server 2010 SP3 - Rollup 8 - Issue - Problems with client connections - MS Outlook 2013
Exchange Server 2010 SP3 - Rollup 8 - Issue - Problems with client connections - MS Outlook 2013
Detected Problems:
- Access denied for attached mailbox (department mailbox)
- Access denied for delete or move messages on own mailbox
- Can't send new messages with error (Error: [0x80004005-00000000-00000000])
Solution:
- Rollback to Exchange 2010 SP3 - Rollup 7
- You can rollback to Exchange 2010 SP3 - RollUp 7 in 30 min
Algunos de los destinatarios no recibieron su mensaje.
Asunto: Hola
Enviado el: 11/12/2014 8:35
No se puede localizar a los destinatarios siguientes:
'[email protected]' en 11/12/2014 8:35
Este mensaje no se pudo enviar. Inténtelo de nuevo más tarde, o póngase en contacto con el administrador de red.
Error: [0x80004005-00000000-00000000].See the following forum thread:
https://social.technet.microsoft.com/Forums/en-US/1be9b816-b0ab-40ea-a43a-446239f8eae3/outlook-client-issues-following-exchange-2010-rollup-8
Maybe you are looking for
-
Multiple Installs On The Same Computer
Apple recently started providing printer drivers for Epson's printers, specifically my R1900 and OSX 10.6.8. They're not good. It's been suggested to me that I should use one of my other internal drives, install an earlier OSX and the Epson OEM drive
-
How to populate a jsf table with an array?
I have a JSF project where I'm using a table and I would like to populate that table with some custom information without using a database. I'm trying to write my own data provider. I was wondering if anyone knows how to populate a jsf table using an
-
Buttons not exporting to PDF from CS5
Howdy, all. I've a problem exporting documents containing buttons to PDF. Specifically, CS5 doesn't export interactive buttons placed in my InDesign document to interactive buttons in a PDF file; they show up, instead, as simple, non-interactive grap
-
Disabling oracle trace in udump
Is there a way to disable this udump trace files?. I am using oracle 10g and i have set the following in init.ora sql_trace=false trace_enabled=false oracle_trace_enable=FALSE But still for every connection and query, trace file is getting generated
-
ORA-01678 parameter log_file_name_convert
Hi, in my init.ora file I have : LOG_FILE_NAME_CONVERT=("s:\ORADATA\DB1","u:\ORADATA\DB2","u:\ORADATA\DB1","u:\ORADATA\DB2") And I receive this error : ORA-01678: parameter log_file_name_convert must be two strings, a pattern and a replacement Do you