How to use XML Publisher
Hi,
anyone knows how to use XMLP 5.5 from Oracle Forms?
please help and share your knowledges
regards
igor
Hi,
I checked with one of the Oracle Sales Consultants working with Forms and XML Publisher and he says that you can either use web.show_document() or the Java Importer to generate Reports with XML Pulisher. Note that XML Publisher does not yet support SSO authentication ,which means that there is no implicit authentication possible when running it.
Frank
Similar Messages
-
How to trigger xml publisher API (ex:Delivering Documents via e-Mail)?
Dear All:
How to use xml publisher API ?
In user's guide always talk API's code.(ex:Delivering Documents via e-Mail
// create delivery manager instance
DeliveryManager dm = new DeliveryManager();
// create a delivery request
DeliveryRequest req =
dm.createRequest(DeliveryManager.TYPE_SMTP_EMAIL);
// set email subject
req.addProperty(DeliveryPropertyDefinitions.SMTP_SUBJECT, "Invoice");
// set SMTP server host
req.addProperty(
DeliveryPropertyDefinitions.SMTP_HOST, "mysmtphost");
// set the sender email address
req.addProperty(DeliveryPropertyDefinitions.SMTP_FROM,
"[email protected]");
// set the destination email address
req.addProperty(
DeliveryPropertyDefinitions.SMTP_TO_RECIPIENTS,
"[email protected], [email protected]" );
// set the content type of the email body
req.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_TYPE,
"text/html");
// set the document file name appeared in the email
req.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_FILENAME,
"body.html");
// set the document to deliver
req.setDocument("/document/invoice.html");
// submit the request
req.submit();
// close the request
req.close(); )
Not say how to use this code to account effect !!
Having anybody to use API before?
Please tell me how to use that,thanks!!
BY Emily_yeHi Emily
I had the same question. After much research and a lot of deduction I produced the following:
import oracle.apps.fnd.cp.request.*;
import java.io.*;
import java.sql.*;
import java.util.Vector;
import oracle.apps.fnd.util.*;
import oracle.apps.xdo.XDOException;
import oracle.apps.xdo.common.pdf.util.PDFDocMerger;
import oracle.apps.xdo.delivery.DeliveryException;
import oracle.apps.xdo.delivery.DeliveryManager;
import oracle.apps.xdo.delivery.DeliveryPropertyDefinitions;
import oracle.apps.xdo.delivery.DeliveryRequest;
import oracle.jdbc.driver.OracleCallableStatement;
public class RunTravProgram implements JavaConcurrentProgram {
CpContext mCtx; // global reference to concurrent program context
LogFile logFile; // global reference to context logfile
OutFile outFile; // global reference to context outfile
Connection mConn = null;
ReqCompletion lRC;
//File Separator
private String mFileSeparator;
// globals for template
String XDOAppShortName = "";
String XDOtemplateCode = "";
// hard-wired constants for template addition
final String XDOLanguage = "en";
final String XDOTerritory = "US";
final String XDOFinal_format = "PDF";
final String XDOtemplateType = "TEMPLATE_SOURCE";
String PDFFile = "";
String outFilePath = "";
String progShortName = "";
String progDesc = "";
Integer iRequestID = 0;
String sWatermark = ""; // watermark text
String emailAddress = ""; // Not Implemented
String emailServer = "";
public static final String M_SUCCESS = "SUCCESS";
public static final String M_ERROR = "ERROR";
public static final String M_WARNING = "WARNING";
* Create a Java FND ConcurrentRequest objec to call fnd_request.submit_request
* The first three parameters are:
* Application Short Name -- Application Short name (ie. WAHC)
* Current Program Short Name -- Concurrent Program being called
* Current Program Description -- description for above
* These should be the first three parameters passed by the concurrent
* program in this order. The next two are constants set to null
* These are followed by the parameters passed by the first concurrent
* program that are being passed to the next concurrent program.
* I am limiting the parameter list to ten for now.
// Dynamic PLSQL statement used to get a concurrent request completion status
// This is necessary because the java class does not provide this method :-(
String mGetCompleteStatus =
"DECLARE R_VAL BOOLEAN; " + "b_phase VARCHAR2 (80) := NULL; " +
"b_status VARCHAR2 (80) := NULL; " +
"b_dev_phase VARCHAR2 (80) := NULL; " +
"b_dev_status VARCHAR2 (80) := NULL; " +
"b_message VARCHAR2 (240) := NULL; " + "BEGIN " +
"r_val := fnd_concurrent.wait_for_request (:1,5,1000," +
"b_phase,b_status,b_dev_phase,b_dev_status,b_message); " +
":2 := b_phase; " + ":3 := b_status; " + ":4 := b_message; " + "end;";
public RunTravProgram() {
// no constructor necessary for now
* Concurrent Processing provides an interface 'JavaConcurrentProgram' with abstract method
* runProgram() which passes the concurrent processing context 'CpContext'. The concurrent
* program developer will implement all of their business logic for a concurrent program in
* runProgram(). The main() method, implemented by AOL, will call runProgram() after
* performing all of the required initialization for the concurrent program, including
* establishing a database connection, initializing the required contexts, and setting up
* the log and output files. CpContext will have the request specific log and output
* file input methods
public void runProgram(CpContext pCpContext) {
mCtx = pCpContext;
OracleCallableStatement lStmt = null;
boolean bCompletion = true;
String sPhase = "";
String sStatus = "";
String sMessage = "";
//get handle on request completion object for reporting status
lRC = pCpContext.getReqCompletion();
// assign logfile
logFile = pCpContext.getLogFile();
// assign outfile
outFile = pCpContext.getOutFile();
// assign fileseparator
mFileSeparator = getFileSeparator();
// get the JDBC connection object
mConn = pCpContext.getJDBCConnection();
outFilePath =
((new File(outFile.getFileName())).getParent() == null ? "" :
(new File(outFile.getFileName())).getParent() +
mFileSeparator);
logFile.writeln("OutFile File Path: -> " + outFilePath, 0);
// get parameter list object from CpContext
// these come from the concurrent program
ParameterList lPara = pCpContext.getParameterList();
// create a temporary array and retrieve the parameters created by
// the program. Currently limiting the number of parameters to 10 for now
String pvals[] = new String[10];
int pcount = 0;
while (lPara.hasMoreElements()) {
NameValueType aNVT = lPara.nextParameter();
pvals[pcount] = aNVT.getValue();
pcount++;
if (pcount > 9)
break;
// send parameter values to the log file
logFile.writeln("Arg 1: APPL_SHORT_NAME -> " + pvals[0], 0);
logFile.writeln("Arg 2: CURR_PROG_SHORT_NAME -> " + pvals[1], 0);
logFile.writeln("Arg 3: CURR_PROG_DESCRIPTION -> " + pvals[2], 0);
logFile.writeln("Arg 4: TEMPLATE_CODE -> " + pvals[3], 0);
logFile.writeln("Arg 5: P_PLANT_CODE -> " + pvals[4], 0);
logFile.writeln("Arg 6: P_BATCH_NO -> " + pvals[5], 0);
logFile.writeln("Arg 7: P_SHOW_PROMISE -> " + pvals[6], 0);
logFile.writeln("Arg 8: P_WATERMARK -> " + pvals[7], 0);
XDOtemplateCode = pvals[3]; // store the template name globally
progShortName = pvals[1]; // store the program short name globally
XDOAppShortName = pvals[0]; // store the application short name
sWatermark = pvals[7]; // store the watermark globally
progDesc = pvals[2];
try {
// create a concurrent request object
ConcurrentRequest cr = new ConcurrentRequest(mConn);
// use the parameters to call fnd_request.submit_request
cr.addLayout(XDOAppShortName, XDOtemplateCode, XDOLanguage,
XDOTerritory, XDOFinal_format);
Vector param = new Vector();
param.add(pvals[4]); // plant code
param.add(pvals[5]); // batch ID
param.add(pvals[6]); // Show SO info flag
iRequestID =
cr.submitRequest(XDOAppShortName, progShortName, progDesc,
null, false, param);
mConn.commit();
// send the request ID to the log file
logFile.writeln("-- Request ID: ->" + Integer.toString(iRequestID),
0);
// call fnd_concurrent.wait_for_request to wait until the request
// has ended - use this to check the request status before proceeding
lStmt =
(OracleCallableStatement)mConn.prepareCall(mGetCompleteStatus);
lStmt.setInt(1, iRequestID);
lStmt.registerOutParameter(2, java.sql.Types.VARCHAR, 0, 255);
lStmt.registerOutParameter(3, java.sql.Types.VARCHAR, 0, 255);
lStmt.registerOutParameter(4, java.sql.Types.VARCHAR, 0, 255);
lStmt.execute();
// get the results of the completion
sPhase = lStmt.getString(2);
sStatus = lStmt.getString(3);
sMessage = lStmt.getString(4);
lStmt.close();
// send the results of the request processing to the log file
logFile.writeln("-- Phase: -> " + sPhase, 0);
logFile.writeln("-- Status: -> " + sStatus, 0);
logFile.writeln("-- Message: -> " + sMessage, 0);
// test here to make sure it completed correctly
if (sPhase.equals("Completed") && sStatus.equals("Normal")) {
// construct the PDF file name generated by the called request
PDFFile = progShortName + "_" + iRequestID + "_1.pdf";
// add a watermark to the generated PDF
// create an output stream for the existing PDF
// and set ouput to append
OutputStream pdfout =
new FileOutputStream(outFilePath + PDFFile, true);
// create an inputstream array (required by calling method)
InputStream pdfin[] = new InputStream[1];
pdfin[0] = new FileInputStream(outFilePath + PDFFile);
// add the watermark passed as a parameter
bCompletion = addWatermark(pdfin, pdfout);
// assign the modified file to the context out
// this will print using this request
if (bCompletion)
outFile.setOutFile(outFilePath + PDFFile);
// release the connection object
// and set the completion status for the request
if (bCompletion) {
pCpContext.getReqCompletion().setCompletion(ReqCompletion.NORMAL,
} else {
lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
pCpContext.releaseJDBCConnection();
} catch (SQLException s) {
logFile.writeln("SQL Error: Exception thrown w/ error message: " +
s.getMessage(), 0);
lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
pCpContext.releaseJDBCConnection();
} catch (IOException ioe) {
logFile.writeln("IO Error: Exception thrown w/ error message: " +
ioe.getMessage(), 0);
lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
pCpContext.releaseJDBCConnection();
} catch (Exception e) {
logFile.writeln("General Exception: " + e.getMessage(), 0);
lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
pCpContext.releaseJDBCConnection();
} finally {
try {
if (lStmt != null)
lStmt.close();
pCpContext.releaseJDBCConnection();
} catch (SQLException e) {
logFile.writeln(e.getMessage(), 0);
lRC.setCompletion(ReqCompletion.WARNING, M_WARNING);
* addWatermark()
* @param pdfin
* @param pdfout
* @return boolean
* This method will work for an existing document or a newly generated
* one. Set the outputstream append flag to false for a new document
* and true for an existing one.
* NOTE: PDFDocMerger requires an inputstream array even if it only
* contains one document.
private boolean addWatermark(InputStream[] pdfin, OutputStream pdfout) {
if (!sWatermark.equals("")) {
try {
PDFDocMerger docMerger = new PDFDocMerger(pdfin, pdfout);
//docMerger.setTextDefaultWatermark(sWatermark);
docMerger.setTextWatermark(sWatermark, 80f, 50f);
docMerger.setTextWatermarkAngle(25);
docMerger.setTextWatermarkColor(1.0f, .50f, .50f);
docMerger.setTextWatermarkFont("Garamond", 100);
docMerger.process();
docMerger = null;
return true;
} catch (XDOException e) {
logFile.writeln("Watermark process Failed: " + e.getMessage(),
0);
return false;
return true;
* Returns the file separator
private String getFileSeparator() {
return (System.getProperty("file.separator"));
* EBSEmailDelivery
* @return
* Just for testing right now.
private boolean EBSEmailDelivery() {
if (!emailAddress.equals("")) {
try {
// create delivery manager instance
DeliveryManager delMgr = new DeliveryManager();
// create a delivery request
DeliveryRequest delReq =
delMgr.createRequest(DeliveryManager.TYPE_SMTP_EMAIL);
// set email subject
delReq.addProperty(DeliveryPropertyDefinitions.SMTP_SUBJECT,
"EBS Report:" + progDesc +
" for request: " + iRequestID);
// set SMTP server host
delReq.addProperty(DeliveryPropertyDefinitions.SMTP_HOST,
emailServer); // need to supply the email smtp server
// set the sender email address
delReq.addProperty(DeliveryPropertyDefinitions.SMTP_FROM,
emailAddress);
// set the destination email address
delReq.addProperty(DeliveryPropertyDefinitions.SMTP_TO_RECIPIENTS,
emailAddress);
// set the content type of the email body
delReq.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_TYPE,
"application/pdf");
// set the document file name appeared in the email
delReq.addProperty(DeliveryPropertyDefinitions.SMTP_CONTENT_FILENAME,
PDFFile);
// set the document to deliver
delReq.setDocument(outFilePath + PDFFile);
// submit the request
delReq.submit();
// close the request
delReq.close();
return true;
} catch (DeliveryException de) {
logFile.writeln("email process Failed: " + de.getMessage(), 0);
return false;
return true;
This is the class for a JCP I created to perform the following:
1) Launch an existing Concurrent Program that produces PDF output
2) Grab the PDF and apply a watermark based on user input or conditions
3) associate the modified PDF to CP output for PASTA printing
It isn't elegant but it is fairly simple. I added the email capability and tested it but am not implementing it at the present time.
there is a fair amount of information out there that explains how to create a JCP councurrent program but very little that demonstrates the class needed.
I hope this helps -
How to print total amount in last page of purchase orde using xml publisher
Hi
I customizing purchase order report using xml publisher.
i have to print total amount at last every purchse order.
how to compare carry forward amount in xml publisherI think the guys overhere :
BI Publisher
can help you a lot better -
How to send an email using XML Publisher
Can any body help me how to send an email using XML Publisher.
Regards,
SureshSorry ,
when a http://blogs.oracle.com/xmlpublisher/newsItems/departments/documentDelivery
this it show this not answer the question.
Thanks
Welcome to Oracle Blogs
Welcome to the Oracle blogging community, where Oracle executives, employees, and non-employees exchange views about customer requirements and best practices.
We're sorry, the weblog you requested cannot be accessed.
- You may not have the necessary permission for access the weblog.
- This weblog does not exist.
You may wish to try again using one of the tools below.
- Check the URL and contact your System Administrator for access.
- Or click here to go back to Oracle Blogs homepage.
Powered by
Movable Type and Oracle
The views expressed on this blog are my own and do not necessarily reflect the views of Oracle. Terms of Use -
How to do subtemplate Using XML Publisher Template Builder for Word 5.6.2
Is it possible to do subtemplate (similar to subreport in crystal report) using XML Publisher Template Builder for Word 5.6.2?. If yes, can anyone explain how to call or import subtemplate from main template?
Thank you
V.PirabaHi V. Piraba,
Here is how it works for me in Microsoft Word 2003. I'm not sure if it will work in Word 5.6.2.
Creating Subtemplates
1) Make sure you fill in the “Territory” field when creating Subtemplates. Otherwise there will be no way to import the Subtemplate into another Template. The Import command requires the Territory field to call it from other Templates. You will get a big Java error if you try to import a Subtemplate that does not have the Terriroty field populated.
Importing Subtemplates
1) Place the following syntax at the beginning of your XML Publisher template to import a subtemplate (in Oracle Applications)
<?import:xdo://XDO.[Template Code Name].English.US?>
Example: <?import:xdo://XDO.WC_SUBTEMPLATE_LOGOS.English.US?>
2) Use the following commands to importing Subtemplates from local/network drives (outside of Oracle Applications):
<?import:file:C:/Temp/WC Subtemplate - Logos.rtf?>
<?import:file:L://Templates/WC Subtemplate - Logos.rtf?>
<?import: file:///C:WorkChemical.xsl?>
You can email me at [email protected] if you have further questions.
Hope this helps!
Dan -
How to filter cancelled PO lines using XML publisher desktop
Hello,
I've created a new PO template for printing using XML Publisher Desktop for Word. Output format is in RTF. All data required was printed except when the user canceled a particular PO line, that line will also be printed out with quantity and total amount 0. How can I filter PO lines with "canceled" flag not be printed out? Is it possible to insert conditional statement within the table template? How to do that?
Thanks in advanceif you want only test it by XML publisher desktop
then you can use if statement
for example in field
<?if:TAG1='test?>then
<?TAG2?>then
<?end if?>for row between (for example)
<?for-each:G_GROUPNAME?>and
<?end for-each?>BTW use this method is not correct in my opinion
if you use "canceled" flag as parameter in concurrent program
then you may get xml for RTF template only with needed data -
How to generate multiple sheets using xml publisher
Hi,
how to generate multiple sheets using xml publisher.
Thanks,
Nurhttp://lmgtfy.com/?q=how+to+generate+multiple+sheets+using+xml+publisher
-
How to inclulde digital signature in PDF outputs using XML Publisher
I'm working on AR invoice print report which is a custom report. One of the requirements of this report is to include the digital signature in the output which is in PDF format.
We have below code components for this custom report.
Oracle Report (RDF) - to extract the invoice data
RTF template - for report layout
Bursting file - to split the output into individual PDFs
Is there any document available to implement the digital signaure in my case?
I'm looking for the steps to implement this in my custom report using XML Publisher.Take a look at the report designer's guide; section "Adding or Designating a Field for a Digital Signature" here:
http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187.pdf
Thanks,
Bipuser
If I am not mistaken, this would require using PDF templates and use of Adobe Acrobat Professional.. Maybe others can chime in with other/better options..
Edited by: BIPuser on Aug 2, 2011 12:58 PM -
Error while trying to update the XML template using XML Publisher Administrator
Hello Folks,
We are on R12.1.3
I changed a condition in a report and trying to upload the new XML template using XML Publisher Administrator.
when i click the Apply button, it is throwing an error 'Bad Request'
Navigation : XML Publisher Administrator > Data Definitions > query the report
Click on the name of the report > click 'Update file' besides Data Template > Choose file > Click Apply
I am getting the below error
Bad Request
Your browser sent a request that this server could not understand.
Now, i could not upload a new XML template.
Am I doing anything wrong.
regards,
Krisuser10163762 wrote:
Thank you Eugen and Hussein.
The problem is not with the template.
It seems to be a problem in that particular instance.
Uploaded it in a different instance.
However once i run the program, i cannot view the output as the browser window flashes and disappears.
My colleague says , it is to do with the trusted site to download something from the browser.
Can you please guide me on how to fix this ?
http://bit.ly/1k8e2vi
Thanks,
Hussein -
Creating a text output using XML Publisher
Hi All,
Recently i created a report for my client using XMl Publisher. The Data Definition was XML and the template type was RTF and i got the output in a PDF format. All was going smoothly until the client decided at the last moment that they wanted to print this in a dot matrix printer!
I've read some articles on XSL- Text layout templates. But i can't get my head around it (I'm Functio-Technical as opposed to Techno-Functional )
How do i convert my RTF template to give me a text output?
MirangaFrom what I know, you will have to create another template based on "XSL" layout or eText layout (both of them require different coding methods). The RTF can not create text outputs even in 11g. This is based on my experience so far. You can create RTF output (available by default) based on the current layout that you use for PDF and see if it can be printed in a dot matrix printer though.
-
Report VS Excel output using XML Publisher tool (DBMS_XMLGEN)
Hi All,
Currently I am working on report generation in MRP module with Excel output using XML Publisher tool.
XML tool works based on query.
I have developed PLSQL block by using DBMS_XMLGEN – database package, to generate XML output of query.
My question is how we can put generated xml on above PLSQL block into OUT file (APPS).
Because DBMS_OUTPUT.PUT_LINE( ) has limitation, it allow 255 character string only.
But I do not know, Is FND_FILE.PUT_LINE (FND_FILE.OUTPUT,’’) allow for large data?
If it does not allow what will be the other solution in oracle application to resolve above problem.
Let me know any queries regarding to this problem.
Thanks and Regards,
Sai Krishna @cavaya.comHi Prakash,
Thanks for the reply. We did apply the one-off patch and got rid of the problem of not viewing 'Excel' output using XMLP.
Now we are looking at a different perspective:
Basically our client is looking for the following:
1. Mathematical functions in the resulting XLS (like SUM, AVG etc..) ouput
2. Use of macros if possible.
And to do this i am looking out for a sample template that gives me output in excel format I have a TAR with Oracle for this purpose, but the TAR has so far been unsuccessful in providing us with any material in the direction.
Our client remembers seeing this as a demo at the Oracle Conference this yr at San Fransisco, but does not have a sample to provide us. We are looking for such a sample.
Thx,
Nitin -
Excel Output for Standard Reports using XML Publisher
Hi All,
Customer wants to get Excel Output for the existing Standard/Custom Reports using XML Publisher. I followed the following procedure.
1. Changed the output to XML for Concurrent program ( Trial Balance - Detail )
2. Used the Existing seeded Template
3. Ran the Report using EXCEL as the output.
When I clicked on View Output, I am not able to see the Excel output. I am seeing the HTML tags in the output window. Verified that Viewer Options existed for Excel as follows:
File Format=Excel, Mime Type=application/vnd.ms-excel.
When I ran the report with PDF output. I can see the PDF output.
Ran the HTML output with new Viewer Option ( File Format=HTML, Mime Type=application/vnd.ms-excel) then I can see the output in Browser in the Excel format. I did this test after going through the Metalink Note: Note:316752.1
My question is.. Do I need always choose the HTML ouput in the options window to trigger the Viewer option for HTML. Customer may not like this idea. He would like to choose the Excel Output and see the output in Excel format either in the Browser or Microsoft Excel.
Can someone in this situation before help me out.
Thanks,
VQuestions rephrase:
1. Is the output is same for HTML and Excel options ?
2. Why the output is viewable with HTML option and not with Excel option ?
Customer has XML Publisher Version 5.0.1 and in the process of applying 5.6.1
Thanks,
V -
Not getting Euro Symbol in PDF Report using XML Publisher
Hi,
We have developed an Oracle Report from Report Builder 6i and also a Template in RTF Format.
We are using XML Publisher to display our XML Output in PDF Format to Users..
There is a Field called Comments on Customer Transaction Form, where user can enter any characters and that we are querying in Report and displaying on the PDF Output.
Currently, the user entered a Euro Character on the comments section and that was not visible to user on PDF Report and replaced by a Question Mark as below:
"3% price reduction ?89.91, 20% marine"
When i am Querying to the Database, i am able to see the Euro Symbol, but when i checked the XML generated on the Unix Box for the Report. I found as below:
"3% price reduction \342\202\25489.91, 20% marine"
So, the Euro Symbol on the database is replaced by " \342\202\254" in the XML Output and ? in the PDF Outbut.
Please help ASAP.
Regards
Saurabh Jaiswalone way
value set based on view (view - select level id, chr(level) cl connect by level <= 500)
for example, chr(64) - @
so in xml you have code of @. sample xml is
<ROWSET>
<ROW>64</ROW>
</ROWSET>in rtf template pick
<?xdofx:chr(to_number(ROW))?>
select chr(14844588) from dual
€Edited by: AlexAnd on Aug 23, 2011 12:46 AM -
Printing Arabic text in Oracle Application(R12i) using XML Publisher.
Hi,
I am using Oracle Application R12i version with Oracle database as 10g, base language as English and installed language as Arabic.
I am trying to print the data which is there in English/Arabic in Oracle Application(using XML Publisher).
I've created a rdf using Report Builder 10g and registered as concurrent program (XML as Output format). There after i executed the concurrent program and generated the XML file.
Based on the XML file, i created a rtf file using XML Desktop(in Ms word) and register the same rtf file in XML Publisher Administrator for creating the XML definition and Template and Output as PDF.
After creating a XML template, when i executed the Concurrent program, english text is shown in english but arabic text is shown some ascii characters like Question Mark(up side down).
Could anyone please let us know the steps for doing the same or plz let us know are we missing any step.
Quiet urgent.
You could also reply to [email protected]
Thanks in advance
Your help will be appreciated.
Edited by: user10772035 on Aug 20, 2009 10:23 PMSame Problem here, if you are able to solve it, please also help me.
-
Unable to view image if the size is more than 3KB using XML Publisher.
Hello,
We are printing PO approver signature using xml publisher (rtf) on a pdf.
If the size of the image is 3KB or less, the image gets printed.
But, if the size is more than 3KB the image does not get printed.
Additional Info:
1. The signature is stored as jpg image in fnd_lobs table.
2. On following code is mentioned in the rtf
<fo:instream-foreign-object content-type="image/jpg">
<xsl:value-of select="IMG_SIGNATURE"/>
</fo:instream-foreign-object>
3. We are using the following function that converts BLOB to CLOB.
CREATE OR REPLACE FUNCTION XX_BLOBTOBASE64
b IN BLOB
RETURN CLOB
IS
sizeb PLS_INTEGER := 4080 ;
buffer RAW(4080);
offset PLS_INTEGER DEFAULT 1;
RESULT CLOB;
BEGIN
-- dbms_lob.createtemporary
-- lob_loc => RESULT
-- , cache => FALSE
-- , dur => dbms_lob.CALL
-- LOOP
-- BEGIN
-- dbms_lob.READ
-- ( lob_loc => b
-- , amount => sizeb
-- , offset => offset
-- , buffer => buffer
-- EXCEPTION
-- WHEN no_data_found
-- THEN
-- EXIT;
-- END;
-- offset := offset + sizeb;
-- dbms_lob.append
-- ( dest_lob => RESULT
-- , src_lob => to_clob(utl_raw.cast_to_varchar2(utl_encode.base64_encode(buffer)))
-- END LOOP;
DBMS_LOB.createtemporary(lob_loc => RESULT, CACHE => FALSE, dur => 0);
Wf_Mail_Util.EncodeBLOB ( b, RESULT );
RETURN RESULT;
END;
Requesting any of you to let us know if there is any method to resolve this issue.
Thanks,
Angelica.Hi,
Are you using Outlook.com to send/receive emails? Based on my research, we can only add an image/ picture in your e-mail signature that’s Web based (picture that is available in existing websites or stored in an online storage). See:
http://answers.microsoft.com/en-us/outlook_com/forum/osettings-oemailset/add-logo-to-outlookcom-signature/4455facf-0926-42a6-aad7-756de662a865
Since this forum is for general questions and feedback related to Outlook desktop application, if you are using Outlook.com, I'd recommend you post your question in the Outlook.com forum:
http://answers.microsoft.com/en-us/outlook_com/forum?tab=Threads
The reason why we recommend posting appropriately is you will get the most
qualified pool
of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Maybe you are looking for
-
How do you change the Color Red, that shows up on various points of the Calendar to another color? Persons with certain eye problems have visual irritations that can be caused by the color Red. This problem came up with the update to IOS 7.0.
-
My ipad mini loses Internet connection every time it automatically locks.
My ipad mini loses Internet connection every time it automatically locks. I have to re-establish the connection but sometimes it would take too long for the Internet to be connected. I'm using a wireless connection
-
When I paste my artwork to a new document how do I paste it so it pastes into the artboard? It always pastes way outside of it even though I do paste in place.
-
Photoshop CS5 disables autoplay for digital camera?
I just received and installed Photoshop CS5 Upgrade a couple days ago. Software seems to be working fine. However, I've noticed that when I plug in my DSLR (Canon EOS 5D Mark II), it will not auto-launch any application assigned to it. Typically,
-
Hi everyone! I'm hoping someone cn help me... I'm wanting to redownload quite a lot of songs I purchased on iTunes a few years ago but they're not on my "purchased" list on iTunes but my recent ones are. I did have a different laptop at the time, so