PDF printing using SAPSPRINT
We want to move from SAPLPD to SAPSPRINT shortly.
At the moment some aspects are not working and I need your input.
We have a printer that used to print PDF documents fine with SAPLPD however its failing with SAPSPRINT. Does this mean that with SAPSPRINT, we are mandated to use SAPPDFSPRINT or would it still work with other PCL based printers.
The printer in question is a HPLJ5SI printer using access method U on a print server with SAPSPRINT. I reviewed SAP notes and found that we need to have a supported XDC file in order for PDF printing to work. I couldn't find one for HPLJ5SI within the list of XDC files supplied so I added the device type HPLJ5SI and gave default XDC name as hppcl5e.xdc however it doesn't work as it still says unknown device type.
I tried tweaking other things to make it to work but no luck. Also once I add the missing device type to an existing PCL XDC in the XDC assignment, do i need to re-create the PDF form from scratch or would it be okay if I were to re-print a PDF spool thats already there. Just wanted to get test case right here.
The error seem to indicate problem at the core so my question is do we need to switch to SAPPDFSPRINT and if this is our only option given that we will be migrating from SAPLPD to SAPSPRINT.Any pointers here are appreciated.
Regards
Kalyan
Hello Kalyan,
Please see note 1444342.
"You want to print forms that were generated by ADS on printers that are not
defined with a device type in accordance with Note 685571 (that is, they are not
assigned to an XDC file). This was not previously possible. Due to the new
component SAPPDFPRINT, interactive forms can be printed on any Windows printer
just like all of the other spool requests with the SAPWIN device types."
By using SAPPDFPRINT, you do not need to assign XDC file to device type. So it is a easy way to
print PDF on any printer.
If you want to use XDC file and device type other than PDF1 or PDFUC, please read note 685571.
685571 - Printing SAP Interactive Forms by Adobe
Regards,
Yiming
Similar Messages
-
Problem printing files to Adobe PDF printer using VBA
I have an Excel project. Part of the code prints the active sheet range as a PDF file. Later code then sends the PDF file as an e-mail attachment. The Code was originally written using the free application PDFCreator and works as intended. However the client wants to use the Acrobat "Adobe PDF" printer instead.
Each PDF must have a name as specified in the code and must be sent to a specified folder, again as specified in the code.
The Adobe PDF printer insists on 1) using the path specified in the printer preferences and 2) naming it as the workbook name + .pdf.
I have checked the Distiller API reference and it tells me that if a key is set, the output path and name can be controlled. However, setting the key as described does not work. The PDF printer ignores it and creates another key named as the output file with a REG_SZ value that is numeric and increments each time print is invoked.
Attached is a screen shot of the registry entries.
What am I doing wrong?I have.
However, I think I have solved this.
First, I am using Win 7 64 bit, so the application is not excel but c:\windows\splwow64.exe. I've modified my code so that both XP 32 and Win7 64 are catered for.
Second, the print command I used in VBA was
ActiveSheet.Printout ActivePrinter:= "Adobe PDF"
It looks like that starts a different Adobe DF printer to the one that would look at the registry. If I change the code to
ActiveSheet.Printout
and set Adobe PDF as the default printer in control panel, the whole thing works as planned.
All I need to do now is to set the printer to Adobe PDF within the code so the user doesn't have to do this in Control Panel. Obviously, my approach above didn't work, so what is the way to do this?
Here's the sub routine as it stands at the moment:
Public Sub PrintUsingAcrobat()
Dim strOutFile As String
Dim PDFPath As String
Dim FileName As String
Dim XPApplic As String
Dim X64Applic As String
XPApplic = Application.Path & "\excel.exe"
X64Applic = "C:\Windows\splwow64.exe"
Const HKEY_LOCAL_MACHINE As Long = &H80000002
Const HKEY_CURRENT_USER As Long = &H80000001
Dim lRC
Dim sPath
Dim objRegistry
PDFPath = outpath ' outpath is a global variable set elsewhere
strOutFile = Range("Suppliername") & ".pdf"
FileName = PDFPath & strOutFile
Set objRegistry = GetObject("winmgmts://./root/default:StdRegProv")
sPath = "SOFTWARE\Adobe\Acrobat Distiller\PrinterJobControl"
lRC = objRegistry.SetStringValue(HKEY_CURRENT_USER, sPath, XPApplic, FileName)
lRC = objRegistry.SetStringValue(HKEY_CURRENT_USER, sPath, X64Applic, FileName)
ActiveSheet.PrintOut
DoEvents
End Sub -
Adobe PDF printer - Use VBA??
I am using Microsoft Access 2003 and have Acrobat 7 (Adobe PDF) and Acrobat 5 (Adobe PDF Writer) installed on my machine. I can print to the Adobe PDF printer by using this code:
Set Application.Printer = Application.Printers("Adobe PDF")
DoCmd.OpenReport strReport, acViewNormal, , , acHidden
I am trying to figure out if there is a way to use an Acrobat object to set the path and document name without user intervention (which the code above requires as a dialog pops up requesting that information).
So, I am pretty good at figuring out how to use the various properties and methods of objects but I am just not sure WHICH objects I should be dealing with and I got lost in trying to read the SDK.
Can anyone provide at least a push in the right direction?
Bob
P.S. If I posted this to the wrong forum or category, please do not just tell me that I did, but let me know where it should go. I posted this originally to the wrong place and was told so, but I had to use a private message to the employee (who told me I had posted to the wrong place and locked the thread) in order to find out that THIS might be the proper location."Adobe no longer supports Acrobat 7 (let alone Acrobat 5!!!)"
Yeah, I know - I work for a large bank (contractor) and they move VERY SLOWLY with upgrades. -
PDF PRINTING using Apache FOP and Oracle Containers for J2EE
Hi,
I am having major confusion about the pdf printing in Oracle XE and Apex 3.1.2.00.02
It clearly states that this is an available option on the Oracle website.
According to Apex there are two options for printing report regions.
Standard - which is free
Advanced - which uses BI and requires a licence
Standard requires me to have Apache FOP (which is provided by Oracle in the Apex release) and Oracle Containers for J2EE (OC4J)
Where my understanding of all this falls down is the part where I am downloading the Oracle Containers for J2EE and the license agreement states this cannot be used in a production system (only as a protptype). Can anyone clarify this? This is surely a required componenet and for the standard report printing which is supposed to be free.
My problem is that I need to have a database system on a laptop that will go off site for a number of weeks. We need report printing options.
Can anyone help with this. im desperate.
Kind regards
colin mclayno not yet with Application Server.
I have tried to compare the settings to another installation with a separeted oc4j as described in the howto. But at the moment i found no mistakes.
If i call the url adresse like:
http://localhost:18101/fop/apex_fop.jsp
i get:
500 Internal Server Error
Servlet error: java.lang.ClassNotFoundException: fop.apex__fop
I installed it another time with these settings:
Web Anwendung= .../fop.war (selected war file from apex install directory)
Anwendungsname= fop
URL zuordnen= /fop
I would like to know if its possible to use the fop.war out of apex install directory with the Application server? In the standalone version (as described in howto) it works. But if you install it there you don't need to define an URL.
Is the URL /fop correct or what do i have to insert there? -
Weblogic 10.3.4 as report printer for PDF printing using apex_fop.jsp
Hello,
Is it possible to use the apex_fop.jsp in combination with Oracle Weblogic 10.3.4 for PDF printing?
We have managed to get our Apex application to print PDF documents using Apache FOP with Oracle Weblogic 10.3.3 or Apache Tomcat 6 as a report printer.
But when we are trying the Oracle Weblogic 10.3.4 server as report printer, we will get the Error 500--Internal Server Error error in the pdf.
One of application server log shows the error "Expected Node-set in Path Expression".
Regards,
Mathieu Meeuwissen
Edited by: Meeuwtje on 17-jan-2012 17:00Steve,
I am using JSF2.0 and getting javax.el.ExpressionFactory NoClassDefFound issues.
OEPE Helios
Weblogic 10.3.3
I have an EAR containing one WAR.
WEB-INF/lib
el-api-2.2jar
el-imp-2.2.jar
jsf-api.jar (2.1.1)
jsf.impl.jar (2.1.1)
jstl.jar (1.1.0-D13)
web.xml has
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
EAR has
weblogic-application.xml with
<wls:prefer-application-packages>
<wls:package-name>org.eclipse.persistence.*</wls:package-name>
<wls:package-name>javax.faces.*</wls:package-name>
<wls:package-name>com.sun.faces.*</wls:package-name>
<wls:package-name>com.sun.el.*</wls:package-name>
<wls:package-name>javax.el.*</wls:package-name>
</wls:prefer-application-packages>
I see by your post that JSF2.0 support can be solved by either deploying a shared-library or using the weblogic.Deployer utility. Unfortunately, we don't have access to change the Weblogic instance in any way. I was hoping that using the prefer-application-packages would be sufficient to use alternative classes to Weblogic's but I have not been able to get it to work for the javax.el classes. I have tried not including javax.el and the app deploys but then accessing a page produces a javax.el.ELResolver no method found for invoke. Invoke being a newer method defined in el-api-2.2.jar. If I was able to convince them to add some shared libs, what are all the jars that would be required to make this work?
Any suggestions would be greatly appreciated.
Thanks
John -
PDF Printing using BI Publisher
Hello,
I'm using APEX 4.2 and trying to export some classic reports to PDF. I followed these directions to install BI Publisher:
http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html
Entered these values in the Apex Aministration Report Settings section:
Print Server: BI Publisher
Print Server Protocol: HTTP
Print Server Host Address: http://TOSHIBAUSER-PC:9704/xmlpserver (also tried with localhost and failed)
Print Server Port: 9704
Print Server Script: /xmlpserver/convert
Back in my Classic Report, I configured these settings in the Print Attributes tab:
Response Header: Report Settings (also tried with Print Server and failed)
Print URL: f?p=&APP_ID.:7:&SESSION.:FLOW_XMLP_OUTPUT_R7671716059006280
I'm getting this error:
report error:
ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
Can anyone tell me what I'm doing wrong? I have never configured PDF printing this way and am pretty lost.
Thanks,
Johnhi Johnny98 ,
we implemeneted the same environment Apex 4.1 and BI publisher 11g,using JS script from Apex as Dynamic ACTION .
please following steps..
BI side
http://www.oraclevadakadu.blogspot.com/2012/03/oracle-bi-publisher-11g.html
I will try to give english post on this week.
in Apex side.
1.create button with dynamic action
2.create dynamic action
3.Event : Click
4.Selection type:Button
5.button: invoke BI print
6.Action: Exe JS script
7.code:JS script include passing parameter from Apex item.
Thanx,
Ram -
PDF printing using APEX Listener
Hi -
I have one report region a an apex page which displays a classic report based on a simple query. I also have a some header information above the report which are the application item information passed from the previous page. I am trying to generate a PDF report(using APEX listener), the report comes fine but it doesn't show the header information that is displayed above the report. Is there a way to do that? I tried putting some values in "Print Attributes" --> "Page Header" section but it just shows it as static text. Please provide your expertise.
APEX version: 4.2.2
Oracle:11gR2
Printing Engine: Apex Listener
Thanks,
-SeenuYou will need to build an Xsl document and load it into APEX.. Here is the link showing how to do advanced printing with APEX..:
Marc Sewtz: PDF Printing with Oracle Application Express 4.2.2
Thank you,
Tony Miller
LuvMuffin Software
Ruckersville, VA -
Win7 does not show "Adobe PDF" printer using Acrobat 8 Pro
using Acrobat Pro 8.1.0 I cannot see or add Adobe PDF printer. I do see "Microsoft XPS Document Writer" as a printer.
Concentrate on getting the scanner working without any Adobe software. Once you can scan to a file, any OSX program (except Adobe) that can read the file can generate PDF files via the Print command.
-
Frontend printing using SAPsprint
Currently we are using frontend printing using SAPlpd. This method is not recommended anymore and we have issues with it. So we would like to use SAPsprint instead.
Here is a typical scenario:
1- Web AS running on a UNIX box in location A
2- SAP GUI on Windows XP in location B
3- Print server running Windows 2003 server in location B
My question is: where should we install SAPsprint? What needs to be changed on Web AS? Do we still need SAPlpd on Windows XP workstations?
Cheers,
MasoudHello Masoud,
Our implementation has SAPSprint running on our CI which then routes the job to our Windows print server that has all the printers defined and shared. We do not have SAPSprint installed on each workstation. SAPLPD will still run via the SAP GUI if the user selects the local print option which means that it will use the devices attached to that workstation directly. The SAPLPD that is used locally is part of our GUI install and is valid to use in conjunction with SAPSprint (for server based printing).
Example Output Device in SAP:
DeviceAttributes Tab
Device Type ZHPLJ4 ZHPLJ4 : HP Laserjet 4 serie
Spool Server r3ciserver_P01_00
Server Description
Host r3ciserver
Device Class Standard printer
Access Method Tab
Host Spool Access Method C C: Direct operating system
Host printer
printserver\mis ***Windows Print Server***
Host Name r3ciserver ***Central Instance***
Hope that helps you some,
Thomas -
PDF Print: Using Device Type PDF1 to output SAPscript forms
Hi all,
I'm trying to create a e-mail with pdf attachment using the info from the note 323736.
I'm hable to send some mails with attachment, but I'm not hable to add the device type created in a smartform print and send automatically through e-mail.
It gives the following error:
"Device type PDF1 does not support page format DINA4."
Does anyone know the possible page formats or how to enalbe DINA4 as a possible format to send via PDF?
Any ideas?
Regards,
Pedro
Edited by: Pedro Taveira on Aug 6, 2009 4:53 PMHi Pedro,
Transaction SPAD, Click 'Full Administration' then the 'Devce Types' tab. Then display the device types.
Find your device type in the list and choose 'Formats', this will list the formats for this device type.
Regards,
Nick -
Issue in PDF printing using FOP
We have configured Print server as per http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html section #5
However when we try to print pdf, it says "Page Cannot be found"
In the print server oc4j log, here is what we see:
=============
08/11/18 09:58:03 [ERROR] Logger not set
08/11/18 09:58:03 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
08/11/18 09:58:03 [INFO] building formatting object tree
08/11/18 09:58:03 [INFO] setting up fonts
08/11/18 09:58:03 [INFO] [1]
08/11/18 09:58:03 [WARNING] table-layout=auto is not supported, using fixed!
08/11/18 09:58:03 [INFO] area contents overflows area in line Solicitation
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line Proposal
08/11/18 09:58:03 [INFO] area contents overflows area in line Proposal
08/11/18 09:58:03 [INFO] area contents overflows area in line Project
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line Created
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line Project
08/11/18 09:58:03 [INFO] area contents overflows area in line ETECH
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line Request
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line Stephen
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line Serena
08/11/18 09:58:03 [INFO] area contents overflows area in line
08/11/18 09:58:03 [INFO] area contents overflows area in line assessment
08/11/18 09:58:03 [INFO] area contents overflows area in line station
08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore,
08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore,
08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore
08/11/18 09:58:03 [INFO] area contents overflows area in line Fillmore
08/11/18 09:58:03 [INFO] area contents overflows area in line Buffalo,
08/11/18 09:58:03 [INFO] Parsing of document complete, stopping renderer
===============
Is there any setting that we are missing.Any help will be appreciated.Mary
I too use multiple report queries which are then converted to XML and passed to the FOP server, I'm not sure what you want is achievable in the report queries. Alternatively you can use XSL in the style sheet to conditionally display output.
e.g.
<fo:block font-size="8pt">
<xsl:for-each select="//ROWSET2/ROWSET2_ROW">
<xsl:variable name="vContactTypeName">
<xsl:value-of select="CONTACT_TYPE_NAME"/>
</xsl:variable>
<xsl:if test="$vContactTypeName = 'URL'">
<fo:block><xsl:value-of select="CONTACT_TYPE_VALUE"/></fo:block>
</xsl:if>
</xsl:for-each>
</fo:block>
Hope that helps
Paul -
PDF printing using javax.print
Hi!
I need to create an aplication that generates a PDF document and then prints it. For creating the PDF doc, I use the iText package.
I have some problems with printing. I don't know how to print the document I generate. Could you give me a hint please? (I can print GIF docs, yet I do not know how to convert the PDF to GIF).
Thanks in advance,
Aleximport javax.print.*;
import javax.print.attribute.DocAttributeSet;
import javax.print.attribute.HashDocAttributeSet;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.attribute.standard.Copies;
import javax.print.attribute.standard.MediaSizeName;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
public class PDFfilePrinter {
public static void main(String[] args) {
DocAttributeSet fset = new HashDocAttributeSet();
PrintRequestAttributeSet pset = new HashPrintRequestAttributeSet();
String filename = "somefile.pdf"; //name of file to print
DocFlavor docf = DocFlavor.INPUT_TYPE.PDF;
PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
if (0 < services.length) {
DocPrintJob printer = services[0].createPrintJob(); //default printer on my system
try {
FileInputStream fis = new FileInputStream(filename);
Doc toprint = new SimpleDoc(fis, docf, fset);
pset.add(MediaSizeName.ISO_A4);
pset.add(new Copies(1));
printer.print(toprint, pset);
} catch (PrintException e) {
e.printStackTrace();
} catch (FileNotFoundException fnfe) {
fnfe.printStackTrace();
Here's the code I'm working with for printing. This stuff works .... in a very strange way - it prints out all sort of crazy characters. I know I am doing something wrong and I think it's all in this line:
DocFlavor docf = DocFlavor.INPUT_TYPE.PDF;
Should I use a different flavor? I read somewhere that the PDF file format is not entirely supported bye javax.print. Could this be the problem?
Thanks in advance,
Alex -
Dear Experts,
in order to print from SAP via the SAPSPRINT service we must install Windows Servers.
The question is:
--> How many spools/hour can one SAPSPRINT service cover ?
--> How much CPU / Memory should be assigned to one SAPSPRINT service?
I understand that we should not direct ALL spools via one single SAPSPRINT service (stability)
Thanks a lot for all your help and input related to SAPSPRINT experiences!
Kind regards,
Marchi marc,
SAPsprint is not so stable. On my experience, we can rely on one or two SAPsprint server.
I do like to use SAPLPD than SAPSprint even though SAPLPD is already obsolete. It's more stable to print a lot of documents
ardhian
http://ardhian.kioslinux.com
http://sapbasis.wordpress.com -
Hello gurus,
I am receiving the following errors once I load my .fo file and test it:
Adobe could not open 'accpted_risk_rpt[3].pdf, not a supported file type or fille has been damaged.
I am using Apex 3.2.1 on Oracle 10g. I have purchased the java4less to produce my formatted reports and export the .fo file.
Then upload the file into my Apex environment and attach the file to a report query, then I receive the error. When I attach the file to the defuault fo layout, provided by apex it doesn't error on me. Any help on this is greatly appreciated.
Thanks,
MaryMary
I too use multiple report queries which are then converted to XML and passed to the FOP server, I'm not sure what you want is achievable in the report queries. Alternatively you can use XSL in the style sheet to conditionally display output.
e.g.
<fo:block font-size="8pt">
<xsl:for-each select="//ROWSET2/ROWSET2_ROW">
<xsl:variable name="vContactTypeName">
<xsl:value-of select="CONTACT_TYPE_NAME"/>
</xsl:variable>
<xsl:if test="$vContactTypeName = 'URL'">
<fo:block><xsl:value-of select="CONTACT_TYPE_VALUE"/></fo:block>
</xsl:if>
</xsl:for-each>
</fo:block>
Hope that helps
Paul -
Problems with PDF printing, using Apache FOP!
When I click on "print" link I reseive an empty file!
I done each step that was described in manual.
I don't know what to do.
Best Regards, Kostya Proskudin!Ok, let me describe all my actions:
1. I download from http://archive.apache.org/dist/xmlgraphics/fop/source/ file fop-0.20.5-src.zip.
2. I extract it.
3. go to $ORACLE_HOME/oc4j/j2ee and copied folder fop-0.20.5.
($ORACLE_HOME - means DB home, is it right?)
4. Then I add to the end of file $ORACLE_HOME/oc4j/j2ee/home/config/application.xml
<!-- libraries below added for FOP support -->
<library path="../../../j2ee/fop-0.20.5/build/fop.jar"/>
<library path="../../../j2ee/fop-0.20.5/lib/batik.jar"/>
<library path="../../../j2ee/fop-0.20.5/lib/avalon-framework-cvs-20020806.jar" />
<!-- above libraries added for FOP support -->
5. Go to $ORACLE_HOME/oc4j/j2ee/home/default-web-app and copied there apex_for_render.jsp.
6. Open my apex_dmin .... and fill host (my DB host 10.10.10.4), port (DB port 1521 the same as tns has, is it right?) at least script "/apex_fop_render.jsp" (with "/")
Thank you!
Maybe you are looking for
-
Why doesn't Photoshop CS4 open DNG files created in Photoshop CS5?
I download raw photo files from my Leica Dlux 4 and convert the Leica raw files to DNG files using CS5 Bridge. Recently I discovered that when I try to access these DNG files in Photoshop CS4 I get a message saying 'cannot access this file'. The fi
-
How to solve iPhone OS 3.1 problems by downgrading back to 3.0.1
I had problems with my battery dying after 15 minutes of use, the phone not waking up from sleep mode, and cell signal problems after downloading OS 3.1 and iTunes 9. The problem couldn't be solved immediately because iTunes 9 deletes your previous i
-
Hi All Here we have a new requirement from the customer asking us to create a new query. Now the problem is I have to include the 4 views on the application tool bar, it is similar to that we create 4 buttons on the application tool bar and manage wi
-
Generate the fmx through command Prompt
Hi, I am using Oracle forms6i, Oracle 10g Database and Windows (OS). Is it possible to compile the FMB file through command Prompt. And then i need to move the fmx files to server through command prompt. Thanks, Ansaf. Edited by: Ansaf on Jan 24, 201
-
Firefox 4 hangs at loading so I can't see the toolbar to fix it. I just downloaded it.
Firefox 4 hangs BEFORE getting the toolbar and I can't get in to change settings such as system restore settings and the other solutions you have in the help section. ALSO, your help section only shows 3.6 and earlier solutions which really bugs me.