Custom Filename for PDF Report
Hi,
I have a requirement to download pdf for a report. I provided the download action as a column link on the report. Clicking the link I direct to the URL for the custom report I created (f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT= MyReport). Pdf gets downloaded with the name MyReport.pdf. But I need to provide a custom name for the downloaded pdf, it should be based on the Id value of the report column something like this Emp123.pdf where 123 is the employee Id (selected row's employee id value in my report).
I searched in the forums and came across this thread APEX 3 PDF Report Export Custom Filename? but here its mentioned that
" In this case there's no separate attribute for the file name. And we don't do substitutions on the report query name, so setting the name dynamically as you described in your sample, won't be possible. "
Since the thread is a old one so posting a new one. Any pointers is highly appreciated.
Thanks,
Rakesh
1. Call the report with utl_http.
2. Store the output as a BLOB. Either local variable or store it in a table.
3. Print the blob.
Here is how you can print the blob and read the package spec for utl_http.
Re: display a blob on webpage using mod-plsql
Similar Messages
-
Is it possible to override the built-in PDF format handler with a custom IFilter for PDF?
Hi,
SharePoint 2013 comes with a built-in "format handler" for PDF now, so it can index PDF files out of the box. This is great for most users, as it now no longer is necessary to install a third-party IFilter for crawling PDF documents.
My question is, is it possible to override the built-in format handler for PDF with a custom IFilter for PDF? I played with the Set-SPEnterpriseSearchFileFormatState and Remove-SPEnterpriseSearchFileFormat cmdlets. While it is possible to deactivate
the built-in format handler, I was not able to remove it and to create a new one that activates a custom IFilter for PDF files.
Background of the question: While the new built-in format handler for PDF will probably be sufficient for many SharePoint users, some need additional capabilities regarding indexing if PDF documents, e.g. extraction of custom metadata from PDF's document
information dictionary and embedded XMP metadata. PDFlib GmbH, the company I work form, sells an IFilter for PDF, and of course we would like to continue to offer this for SharePoint 2013.
Thanks
StephanYou should be able to replace it with any ifilter you want, this is the procedure for installing it:
Install PDF iFilter 9.0 (64 bit) from
http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025 (http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025)
Download PDF icon picture from Adobe web site
http://www.adobe.com/misc/linking.html (http://www.adobe.com/misc/linking.html) and copy to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\IMAGES\
Add the following entry in docIcon.xml file, which can be found at: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\XML
<Mapping Key="pdf" Value="pdficon_small.png" />
Add pdf file type on the File Type page under Search Service Application
Open regedit
Navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0\Search\Setup\ContentIndexCommon\Filters\Extension
Right-click > Click New > Key to create a new key for .pdf
Add the following GUID in the default value
{E8978DA6-047F-4E3D-9C78-CDBE46041603}
•Restart the SharePoint Server Search 15
•Reboot the SharePoint servers in Farm
•Create a Test site (with any out-of-box site template) and create a document library upload any sample PDF document(s).
•Perform FULL Crawl to get search result.
Once the crawl is completed we will get search results.
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
Custom Filename for Export Data from a Query
Hi,
Would like to define a custom filename for the file to be download as a csv from the web query, Is it possible?
Regards
ChocksThis is not possible, it will be system generated.
-
Security option is not working for PDF Report
security option is not working for PDF Report , e.g password , bug??
what version of SQL Developer are you using?
-
Authid= RWUser for excel reports. Authid=userid for pdf reports
I have the following 2 questions:
1) I get the following error when I try to run a jsp report (for excel output), when I pass authid (that is the actual userid who is running the report)
javax.servlet.jsp.JspException: REP-50171: Authentication failed
2)When I run a pdf report, I go through the rwservlet. In that case if I pass the authid as parameter, the correct value is passed. However, when I run an excel report, From the UI (jsp), the report (jsp) is invoked without going through the rwservlet (the way we invoke rdf's). In that case the auth id that is passed to the report is not the actual user id but RWUser. Where am I going wrong that the authid is not the actual userid but RWUser in case of excel (jsp) reports?
This is how I invoke jsp:
http://servername:port/reports/prj/prjreports/repname.jsp?....Questions 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 -
Custom Filename for ESB FileAdapter Write
Hi,
I have a ESB service that monitors and deqeues from the oracle.apps.po.event.xmlpo business event via the Oracle Applications adapter. This works fine as the WF_EVENT_T schema is routed via an XSL to a custom XML which is used later.
However, I want the file to use a custom filename with the file adapter. In principle I know how to do this using the ehdr:setOutboundHeader functionality and have got this to work when setting a static filename.
However, I want to be able to create the filename based on the Purchase Order Number coming from the WF_EVENT_T schema. It seems that the ehdr:setOutboundHeader function has to be set before any of the XML Template matches, which means at this point the Purchase Order number is not available. Below is the main parts of the XSL.
<xsl:variable name="CustomFilename" select="'/ns2:PONo"/>
<xsl:variable name="AssignFilename"
select="ehdr:setOutboundHeader('/ns1:OutboundFileHeaderType/ns1:fileName',$CustomFilename,'ns1=http://xmlns.oracle.com/pcbpel/adapter/file/Capture_PO_Event_Data/;')"/>
<xsl:template match="/">
<ns2:HCNPOWFEVENT>
<xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
<xsl:if test='NAME = "DOCUMENT_NO"'>
<ns2:PONo>
<xsl:value-of select="VALUE"/>
</ns2:PONo>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
<xsl:if test='NAME = "ECX_TRANSACTION_TYPE"'>
<ns2:POType>
<xsl:value-of select="VALUE"/>
</ns2:POType>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
<xsl:if test='NAME = "ECX_TRANSACTION_SUBTYPE"'>
<ns2:POSubType>
<xsl:value-of select="VALUE"/>
</ns2:POSubType>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
<xsl:if test='NAME = "ECX_PARAMETER5"'>
<ns2:OrgId>
<xsl:value-of select="VALUE"/>
</ns2:OrgId>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
<xsl:if test='NAME = "ECX_PARTY_ID"'>
<ns2:ECXPartyId>
<xsl:value-of select="VALUE"/>
</ns2:ECXPartyId>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
<xsl:if test='NAME = "ECX_PARTY_SITE_ID"'>
<ns2:ECXPartySiteId>
<xsl:value-of select="VALUE"/>
</ns2:ECXPartySiteId>
</xsl:if>
</xsl:for-each>
</ns2:HCNPOWFEVENT>
</xsl:template>
</xsl:stylesheet>
Any ideas on how this can be achieved ?Ok I was able to get fileadapter filenames modified.
First you cannot do this after a dbadapter query as that functionality seems to be broken. The best way to solve it for me was to simplify the problem, I started with placing the setoutbound header data after reading a simple file and ignoring the files content altogether. I do the set inside a match of the xslt using a constant value, again for simplicity. For the test just put in 'ateststring.txt' in the setoutbound header call, no need to select data from the document at this point; we will get to that. Now get that to work.
Once you have that working take a value from the incoming document and select it into a variable named myvariable then replace the 'ateststring.txt' with $myvariable. So basically its a three step process for the final solution. Select the data of interest from the document into a variable. add a select statement to make the method call just after that. Make the method call inside the select statement and prepend the variable name with the $ symbol.
So far I have only tested this file to file and file to ftp, I suspect that jmsadapter to file will work fine too. So the trick for me was to understand that if an incoming document is the result of a query that just wont do. My requirement was to take an input JMS request, use that to drive a query, take the data from the query and write it to a filename as defined in the JMS request. No matter what I did to set the frustrating fileadapter/ftpadapter filename in the header I was unable to do so. I used constant strings etc in every part of the document ( before select, inside select, outside select etc ). It wasnt until I went file to file that I was able to get this to work at all. And then not in the xslt header etc, it MUST be in an area of the document that resulted in a select match, which after review makes sense.
To work around the query to file issue, I place the results of the data query into a temporary filename%SEQ%.tmp, along with the query results I add the real filename inside the document. I have a file listener that listens for the filename using wildcards filename*.tmp, it takes the file reads it in, pulls the permanent filename from the incoming document, and sets that filename in the header using the steps worked out above by selecting the filename into myvariable.
You cannot ( to my knowlege ) store variables in ESB so I found I had to put them inside the documents to move the data around. When I am all done with the work through the routing service I strip out the variable data fields that I needed to carry along with the data.
Please let me know how you are going with this, I hope this saves someone else a bit of frustration.
Thanks again,
John -
Global Temporary table is Not working For Pdf Reports
Hi all
we are using oracle db-10g, developer suite-10g.
While generating the Report for the satisfying several conditions we are fetching the data into
Global temporary table
On commit preserve rows
from this temp tables excel is generated properly. but pdf is not generating can anybody exaplain why it is not generating and what to do for that
Thank youquery and view are not possible
here i am giving one of the requirement
my project is belongs to inventory project.
report should be generated on the different selection criteria like
1)user can select one or more product codes
2)for that product code one or more item codes can select
like this so many different selection are there more than 12 selections from different tables
For this each different selection product code into gtt_prod_cd and item_cd into gtt_item_cd. after that performed the query and in where clause we are comparing the values with gtt.
can you please suggest me what to do for PDF Reports -
I tried to implement FOP (to generate PDF report).
My configuration is the following :
- an Oracle DB (10.2) installed under /oracle/10.2
- An Apache Server (installed from CD Comp) + HTMLDB under /oracle/htmldb
OC4J folder is only present under /oracle/10.2
I tried to follow the steps given in the FOP/HTMLDB notes but when I try to generate a report, I have the following error :
The requested method POST is not allowed for the URL /htmldb_fop_render.jsp.
This is the url of the page when the error is diplayed :
http://oraserver:7777/htmldb_fop_render.jsp?ie=.pdf
Any one see the problem.Hi,
I am using iAS 1.0.2.2.2 (Jserv) it is an Oracle Applications Environment.
I finished the whole note.
1. Downloaded the FOP jar files.
2. Unzipped the jar files in the JAVA_TOP of the Applications environment
3. JAVA_TOP is already in the class path of the jserv
4. Added the jsp file to the correct directory
5. Created the htmdb application with the java script
6. I put some debugging alerts in the java script
Now when I click on the pdf link I don't get any output. Because of the debugging statement in the java script I was able to figure out that the java script is not getting any output when it calls back the htmldb for the XML FOP outout.
I finally tried the URL which the java script uses directly. It came back with an empty xml file.
thanks
amit -
Urgent:How to Speed Up the Response time for PDF Report of 500 pages
hi all
i am running the 9ias on Solaris and Generating some reports
Which fetches around 50,000 records and Display them in pdf format.
When i am ruuning the Query at Database level Response time is Very fast.
But when i Run the Report in Web Browser same report takes 7-8 minutes.
So it seems that the Conversion to pdf and Displaying it takes most of time.
Does any one has idea What parameter's needs to be changed/Caching ??? /
or any other ways or methods which can be used to Reduce the Response time.
(its once a monthly Report and User need to Download all the 500 pages as
a Single Document).
Any help / suggestion please
thanks
jaiYou aren't by any chance calling a function in your repeating frame that in turn goes back and queries the database, are you? If so ... don't. We regularly do 500+ page PDF-file reports, and one thing we discovered early on was that repeatedly going back to the database while generating the report output (in our case, in calculations that were being done on each line of a report) slowed the output down by an order of magnitude. Instead, we now retrieve all the data needed for each report up front (via functions or views called in the initial SQL for the report), and just use Reports to format the output. MUUUUUUUCH faster -- 200 page reports that used to take 15 minutes to complete now complete in just seconds.
One way you can visually see if this is part of your problem is to watch the report execute in the Report Queue Manager application. If it spends all its time on the "Opening" stage then breezes through each page, this is not your problem. If instead it seems to take a long time generating each page, I'd suspect that this may be at least part of your delay.
- Bill -
Writing a custom plugin for Crystal Report Designer
Hi,
I need to add a custom functionality to Crystal Report Designer so that itu2019s available as a menu option is the CRD and should able to be selected by the Report Designer when they design a report using CRD. Is it possible to write and add custom plugins to the CRD? Is there a SDK available to do this or is there a specific method that I could use? Is this supported at all? I need to add the to Crystal Report Designer XI R2 but I could use Crystal 2008 is this is available in that version.
Thank you in advance,
Regards,
ChanakaHi Jamie,
This sure looks promising information for me this is exactly what I want to do. Can you direct me to a working Crystal Report 2008 .net Developer Guide and API reference? The chm files I got from searching doesn't seems to work
[http://www.sdn.sap.com/irj/boc/crystalreports-sdk]
[http://www.sdn.sap.com/irj/boc/sdklibrary#section7]
[http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm]
[http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
Thanks,
Regards,
Chanaka -
Customer License for crystal report
To Whom It May Concern,
Hi, I am new to SAP. I am asking this questions on behalf of my company who are developing software for customers.
We are using crystal report to develop our software to sell to our customers. My question is, does the customer compulsory to buy the license key to open it?
Another question is, what is the visual advantage? Does it have an additional towards the crystal report?
Hope to hear from you guys.
Thank you.Hi there,
For creating reports CR 2008 License key is required. But Customer can simply view the reports using CR Viewer.
Visual Advantage is the combination of Xcelsius & CR.
Hope it clarifies.
Cheers,
Madhu -
Customized filename for output
Hi,
Is there someway to set the filename of an outgoing file adapter based on the contents of the file? We're processing invoices and would like to include the invoicenumber in the file containing the invoice ( each file can only contain exactly one invoice ).
Thanks in advance
ThomasI use the following code in the xsl to create a custom filename:
<xsl:variable name="HR_ID"
select='/imp1:verstuurPlaatsingRequest/imp1:PlaatsingCompleet/ns1:StaffingAction/ns1:ReferenceInformation/ns1:HumanResourceId[@idOwner="StaffingCompany"]/ns1:IdValue[@name="id"]'/>
<xsl:variable name="FILENAME"
select="concat('albronuit_', kim:getCurrentDateTime('yyyyMMddHHmmssSSS'),'_', $HR_ID, '.xml')"/>
<xsl:variable name="SET_FILENAME_OUT"
select="ehdr:setOutboundHeader('/fhdr:OutboundFtpHeaderType/fhdr :fileName', $FILENAME, 'fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
The first step takes the id from my input xml, the second creates the filename and the third passes this filename to the outboundheader.
Anne -
Filename for PDF Files in Reports 10g
Hi Everybody.
I am using oracle application server 10.1.2.3.0 and my OS is windows server 2003.
Is there a way to name the PDF filenames that get generated on the server under the ORACLE_HOME/reports/cache when using the destype=cache, desformat=PDF option on Oracle Reports. Or for that matter, any of the files that are generated. I'm using windows server 2003.
RIght now, it generates its own unique identifier. I would like to control my filenames (Realizing that they have to be unique names), if it is possible. The reason is that I believe I'm going to have to build a user interface of a user's reports in the queue (cache directory) so, if I name it something more meaningful, then I'll be able to handle it.
Anyway, any help or tips would be much appreciated in accomplishing this task. If there is a better way someone has than what I'm doing, please add any comments on things you've done.
SherksyI believe I'm going to have to build a user interface of a user's reports in the queue (cache directory)
The cache is not a permanent repository...
Several years ago I had a similar need (for an Hummingbird application), and I used COPY_REPORT_OBJECT_OUTPUT Built-in to copy the report to a directory and with a name of my choice. -
Payment Medium Workbench Customizing guide for pdf
Hello everybody,
I am currently struggeling with setting up a pdf print with the PMW. For some reason no print is executed, eventhough the form and the interface are activated and assigned to the company code / payment method. There is no error log and also SLG1 gives no clue.
Does anybody know a good tutorial or SAP docu site that lists the necessary steps and prerequisites that have to be met in order to get PMW and pdf running?
Many thanks!
Best regards,
AlexHi Dee Dee,
As stated above, the customizing is all ok.
Thanks anyway.
@All: solved the problem in the meantime myself, I will prepare and provide a manual how to set it up after I got it all done and working.
BR,
Alex -
Enabling end users to create and upload their own layouts for PDF reports
Using the PDF printing features in APEX 3.x and BI Publisher, you can create professional looking report designs with no programming knowledge, simply by using the built-in wizards of the BI Publisher Word Plug-In, and a little knowledge of how to use MS Word. The nice thing about using the Word Plug-In is that even the end users of your APEX applications could potentially do this. The only problem is, that typically those report layouts are stored under the Shared Components of your application, and end users generally don't have access to the Application Builder, all they typically use is your APEX application. So then why not simply add an interface to your APEX application that lets your end users upload their own layouts and dynamically link them to APEX report queries at runtime? I put together a sample application that demonstrates this technique, you can try it out on apex.oracle.com or download the application and try it on your own APEX instance. Here's the link to my Blog with more information:
http://marcsewtz.blogspot.com/2008/05/enabling-end-users-to-create-their-own.html
Regards,
MarcHi Marc,
Very nice app. I tried to create a new template with success.
Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://apex-evangelists.com/
-- http://apexblogs.info/
Maybe you are looking for
-
Installation problems on Solaris 9
I am having issues installing the base software and can't seen to figure out how get past this. The error message from the installation log is as follows: Accept terms of Software License Agreement? [R] y pwd: cannot determine current directory! /tmp
-
MSI NX 6600 Ares PCI-E video card availability
I cannot find a vendor who has the new NX 6600 Ares PCI-E card. Has it been released yet?
-
How do I take songs off Ipod Classic if they are no longer in ITunes?
I've nearly filled my Ipod Classic with music. Since my computer only has so much storage and ITunes couldn't possibly store all the songs, I kept deleting them, then would add new ones, move them manually to the Ipod, and then delete them. I continu
-
Can I print with a HP Laserjet 1000 printer on a mac?
I recently switched to macs and so far it has been a trouble free ride. My only concern is that i have pre-owned an Hp laserjet 1000 printer. HP hasn't come with any drivers for mac therefore i havent been able to use it. I was wondering if there is
-
So basically, my Ipod5 was working normally earlier today but then the screen just randomly went black and I cant get it to turn on. The problem though, is that for the past 15 weeks, it has been telling me that it is unable to save anything to the c