Print a IMAGE in a REPORT
I need to print a IMAGE (hosting in the SE78 transaction store) in a REPORT.
is it possible????
Wait your responses. See you.
Hi,
Using ALV, you can upload logo into report like this:
For those who wish to upload and use a picture in your ALV abap reports.
Steps for uploading Logo :-:
1. Goto the transaction OAER
2. Enter the class name as 'PICTURES'
3. Enter the class type as 'OT'
4. Enter the object key as the name of the logo you wish to give
5. Execute
6. Then in the new screen select Standard doc. types in bottom window
Click on the Screen icon
Now, it will ask for the file path where you have to upload the logo
7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
or
Import Logo and Background Picture for Reporting
In this step, you can import a customer-specific logo and a background picture into the R/3 System. These will be displayed in the header area of reports in HR Funds and Position Management.
From the SPRO:
HR Funds and Position Management --> Dialog Control --> Customize Reporting Interface --> Import Logo and Background Picture for Reporting.
Activities
1. Enter the Name of your logo/background picture as an object key in the initial screen.
2. Make sure that the class name is PICTURES, and the class type is OT.
3. Choose Execute.
4. Double-click the document type Picture on the Create tab page. A dialog box will appear in which you can enter the path in which the logo/background picture can be found.
5. Enter the path and choose Open. The logo will be uploaded into the current R/3 System. If the logo/background picture is to be transported into other systems as well, choose Transport.
6. Return to the initial screen and repeat the procedure after having entered the Name of your background picture as an object key.
Please note that the logo/background picture can only be displayed in ALV-based reports with an HTML header. Manually programmed reports such as business distribution plans are not based on the ALV.
If you have selected several initial objects, ALV-based reports in HR Funds and Position Management will automatically use a hiearchical-sequential display. A logo is not displayed here either. Note also that the logo cannot be printed (see print preview in program).
Make sure that the logo does not exceed a height of 100 pixels because it would mean that the header of the report will be scrollable.
Regards,
Bhaskar
Similar Messages
-
Question about printing an image/control Using Report Generator
The attached VI is an example of creating a report from a control or image. My problem is that when the control (xy graph) gets too large in the vertical direction it clips the image but, the horizontal is scaled to the width of the report.
First question is why does it scale in the horizontal and not the vertical? See the Test.pdf for what I am talking about.
Second, is it possible to control this behavior (edit/create an alternate for the Append Control Image to report or the Report VI's)?
I have found many work around but ultimately it comes back to; why automatically scale one direction but not the other?
For this application I don't mind that the graph is scaled down in the horizontal I just wish it would do the same thing in the vertical axis (I don't even want it to be a 1 to 1 zoom ratio, just fill the avalible report space).
Thoughts?
Attachments:
Print XY Graph TEST.vi 55 KB
Test.pdf 217 KBI agree all of the workarounds have limitations. One workaround, that I'm not sure if you have tried yet is change the numeric constant from 50 to 20 (I attached a picture showing which constant I am talking about). This seems to fix the issue just because the image never becomes larger than the report page itself.
Let me know if that option creates any problems for you as well.
Kevin S
Applications Engineer
National Instruments
Attachments:
Block Diagram.PNG 29 KB -
I have an scan image in my report. I can see the image in the Layout editor but when the report runs all that comes out is a blank piece of paper. The image does not print.
The version of reports is 2.5. Does anyone have any idea why the image does not print.
Thank You
JKHi
If you are using a scan image (which is a bit map)in rep 2.5 and run them through oracle applications 11 and below you may have do lot of system level programming to support bit map images, because oracle apps 11 and below are charter based they do not support bit map. There may be a work around I had been trying for the past 2 years. But with apps 11i and rep6i this is possible.
null -
How to Print GIF image in XML RTF Report
Hi All,
I have one requirement like to print the GIF image in Oracle Report.
The report is an XML Report.
The image file stored in database, the table is fnd_attached_docs_form_vl.
select distinct file_name from fnd_attached_docs_form_vl
Front end Navigation ----->
view -----> Attachments
Now i need to get the image from there and print it report.
Can you pls help me.
Regards
VenuHi,
I didn't tried that scenario as my report is not a Non-XML Report.
And my report is XML Report.
Regards
Venu -
Resize and print a large image in a report
A current project I'm working requires that a "report" be printed out for every "part" produced.
Each "part" is photographed and a high quality (large) .jpg file is
generated and cataloged on the hard drive. A report with this
image is then printed and shipped with the product as part of a QA
process.
Initially I used a command line argument to have Irfanview print the
image only. This was so easy. Even printing in Landscape
was simple. Of course then I realized I would probably need a
little more information than just the image.
Looking at some examples of report generation and reading some of the
problems others have had in the past, I figured it might be good to ask
before I go stumbling around in the dark.
The original images are 2288x1712 in size.
Is there any way to auto resize an image to "fit" onto a printed report?
The only way I can think to do is to experiment with different sizes
until I find something that fits and looks alright, then use either
IMAQ tools or an Irfanview command to resize the image before appending
it to the report.
If anyone has any tricks for this one, I'd love to hear them.
Patrick AllenHere, but like I said, it's a very stupid VI. It doesn't do any avareging or smoothing and it has no mathematical optimization (assuming that there is any). It just removes some of the elements. This has been good enough for displaying images, but might not be good for anything else, because you lose a lot of details.
Try to take over the world!
Attachments:
Resize.llb 98 KB -
Printing a .gif image in the report
Hi All,
Iam doing a report in OPM(Textile setupslip report).
I need to pull up a .gif image in the report's second page and print it.Any suggestions how to do this...?
Thanks and Regards..Hi All,
Iam doing a report in OPM(Textile setupslip report).
I need to pull up a .jpeg image of the sample of the textile in the report's second page and print it.Any suggestions how to do this...?
pls guys , it's very urgent..
any help will be appreciable..
Thanks in advance..
Regards.. -
HP LaserJet 200 color M251nw prints, but images are blurred.
Laserjet200 (HP LaserJet 200 color M251nw) prints, but images are blurred; sometimes the entire page and other times just the right half. Staples tech said the drum could be bad. Can this be corrected? Using W7 ultimate OS.
Hi @jimmanning ,
I see by your post that the images are blurred. I would like to help you.
Run a calibration on the printer.
On the printer touch the wrench, system setup, print quality, color calibration calibrate now.
Print a Diagnostics Page to see if you have the same results. Trying to determine if it is a hardware or software issue.
Go to Setup, Reports, arrow down and select Diagnostics Report.
I have provided a document with more steps for running a cleaning and checking print driver settings.
Troubleshooting Print Quality Issues.
Remove the toner and check to see if there is any toner on drum.
Make sure the paper type is selected to the media that you are using, not the default setting unspecified.
Please provide the following information so I can assist you better.
What were the results of Diagnostics Page and Print Quality Page?
Are you using Genuine HP Toner?
What are the Ink levels?
Was there any damage on the toners?
Have a nice day!
Thank You.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Gemini02
I work on behalf of HP -
View an image in abap report.
I have stored the logo but I want to see it printed an previewed in a report without using ALV or smartforms. Is that possible ??
I have Write:/ Sentences and I want to print the logo above.
Thanks in advance.hi,
try this program and set the width lenght accordingly.
REPORT zgb_prog06.
START OF DO NOT CHANGE***********************************
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
html_table LIKE w3html OCCURS 1,
return_code LIKE w3param-ret_code,
content_type LIKE w3param-cont_type,
content_length LIKE w3param-cont_len,
pic_data LIKE w3mime OCCURS 0,
pic_size TYPE i.
END OF DO NOT CHANGE*************************************
DATA : sum(4) , num1(4) , num2(4).
PARAMETERS: p_dummy(4) DEFAULT '4' .
PARAMETERS: p_dummy1(4) DEFAULT '5' .
AT SELECTION-SCREEN OUTPUT.
PERFORM show_pic.
START-OF-SELECTION.
*& Form show_pic
FORM show_pic.
DATA: repid LIKE sy-repid.
repid = sy-repid.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_stretch.
CALL METHOD picture_control_1->set_position
EXPORTING
height = 200
left = 100
top = 20
width = 400.
CHANGE POSITION AND SIZE ABOVE**************************
IF url IS INITIAL.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
CHANGE IMAGE NAME BELOW UPLOADED IN SWO0*****************
query_table-value = 'BIKER'. GIVE UR LOGO NAME HERE
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = url.
*Syntax for URL
*url = 'file://D:\corp-gbanerji\pickut\cartoon_184.gif'.
*url = 'http://l.yimg.com/a/i/ww/beta/y3.gif'.
ENDFORM. "show_pic
Make changes in the report accordingly.
REWARD POINTS IF USEFUL,
SIRI -
Hello all-
I was wondering if it is possible to create a PDF document with images from a report that has images, through the FOP. I have tried this on APEX 3.2.1 and APEX 4.0.1, but with no success. I installed FOP in a standalone OC4J that I have installed on my PC and this works fine. I am using the Demonstration Application to test creating the PDF with images by trying to print page 23 - it is a report with images. I get a PDF report, but the image column is blank - no image, no errors. Has anyone been able to accomplish this?
Thanks in advance,
GregHi,
yes you can, this tool allows you to create FOP templates with images (look at the examples)
http://www.java4less.com/fopdesigner/fodesigner.php?info=guide
You can of course create your own FOP templates without this tool, there is a XSL-FO tag to do that, you must make sure the images are available to the print server, either by referencing images on the file system or deploying the images in the print server.
Jon -
Using Dynamic Images in PDF Reports
There are a number of threads in the forum where we talked about dynamically including images in PDF reports before. In order to illustrate one technique you can use for doing this, I put together a sample application that illustrates how to dynamically include images that are stored in BLOB columns. I installed the application on apex.oracle.com and made it available for download and local install. You can find the link and login information for this application as well as the download link here:
http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.htmlBased on a discussion we had today in another thread, I think it makes sense to add to this thread that the XSL-FO snipped used to get BI Publisher to render images is used when referencing images in a report column, e.g. you included them in your RTF layout using the BI Publisher Desktop Insert->Table option. In this case, the column is referenced with “value-of select”:
<fo:instream-foreign-object content-type="image/jpg">
<xsl:value-of select="LOGO"/>
</fo:instream-foreign-object>
On the other hand, if you want to dynamically include a company logo, or other data that’s not necessarily repeating, e.g. there’s only one value, then you would use the BI Publisher Desktop Insert->Field option . And you would reference your field as follows:
<fo:instream-foreign-object content-type="image/jpg">
<?LOGO?>
</fo:instream-foreign-object>
So in this case LOGO refers to either a single-value field, or a single-row report column value.
Regards,
Marc -
I want to print the LOGO on the report output
Hi ,
i want to print the LOGO on the report output. How can tyhis possible ?using "SMWO" to upload LOGO image.
add a customer "customer control" named P1 using "SE51"
the following program for your reference:
=============================================
REPORT ytest17.
DATA ok_code TYPE sy-ucomm,
save_code TYPE sy-ucomm.
DATA container TYPE REF TO cl_gui_custom_container.
DATA picture TYPE REF TO cl_gui_picture.
DATA init.
CALL SCREEN 100.
MODULE user_command_0100 INPUT
MODULE user_command_0100 INPUT.
save_code = ok_code.
CLEAR ok_code.
CASE save_code.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. "user_command_0100 INPUT
MODULE status_0100 OUTPUT
MODULE status_0100 OUTPUT.
IF init IS INITIAL.
DATA url(255).
CLEAR url.
CREATE OBJECT container
EXPORTING container_name = 'P1'.
CREATE OBJECT picture
EXPORTING parent = container
EXCEPTIONS error = 1.
IF sy-subrc NE 0.
ENDIF.
PERFORM load_pic_db CHANGING url.
CALL METHOD picture->load_picture_from_url
EXPORTING
url = url.
IF sy-subrc NE 0.
ENDIF .
init = 'X'.
ENDIF.
ENDMODULE. "status_0100 OUTPUT
*& Form
text
FORM load_pic_db changing p_url.
data query_table like w3query occurs 1 with header line.
data html_table like w3html occurs 1.
data return_code like w3param-ret_code.
data connect_type like w3param-cont_type.
data connect_length like w3param-cont_len.
data pic_data like w3mime occurs 0.
data pic_size type i.
refresh query_table.
query_table-name = '_object_id'.
query_table-value = 'TESTPIC'.
append query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
changing
return_code = return_code
content_type = connect_type
content_length = connect_length
EXCEPTIONS
OBJECT_NOT_FOUND = 1
PARAMETER_NOT_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
pic_size = connect_length.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
SIZE = pic_size
DATE =
TIME =
DESCRIPTION =
LIFETIME = cndp_lifetime_transaction
CACHEABLE =
SEND_DATA_AS_STRING =
FIELDS_FROM_APP =
tables
data = pic_Data
FIELDS =
PROPERTIES =
COLUMNS_TO_STRETCH =
changing
url = url
EXCEPTIONS
DP_INVALID_PARAMETER = 1
DP_ERROR_PUT_TABLE = 2
DP_ERROR_GENERAL = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform.
*& Module CANCEL INPUT
text
module CANCEL input.
LEAVE PROGRAM.
endmodule. " CANCEL INPUT
============================================= -
When print as image doesnt fix it, what next?
Hi.
I have a very weird issue.I have a bunch of pages in separate pdf files (reports and solidedge drawings printed with PDF creator). When I merge them (using either itextsharp or adobe acrobat 9 pro) everything looks fine on screen. But when I print the document, a small portion of text goes missing on ONE page only (please note that this page is twice in the document, and the first one prints fine). But now the weird part, if I print ONLY the page that had some text missing, it prints fine. Since this is part of an automated process, I cannot rely on reprinting the page with missing text.
As mentionned in other threads, I tried the print as image option, but with no luck. We also tried different drivers, also with no luck.
Any idea?
Thanks in advance for your help.B.U.M.P. to the top ... still wondering!?!?
-
Showing dynamic and unknown number of images in SSRS report
I am using SSRS 2008. I need to display an unknown number of unspecified images on the report.
Basically I have a webpage, where the user selects a specific ID (ex. 24) from a dropdown and then click "View Report".
The report should then display any images, associated with that ID. The only thing I know about the images, is the path to where the images are stored. The path is kept in a database, so I should be able to retrieve the path ok.
But then how do i get the report to display the images, when I do not know the name or number of images?
Please help.Hi dukie4lif,
According to your description, you have a report to display images selected by users. Now your issue is, the users select a specific ID to get images, but you only have the path of images stored in your database. Is my understanding correct?
For your requirement, if the users want to get images by selecting a specific ID, this ID must be stored in database and associated with the path of those images. Otherwise the database can never query any records with this ID if it doesn’t have any ID stored.
Now we need to go to your database, create one more table or add one more column in the table which have your path stored to store those IDs, and let them associated with those path. Use a parameter in this report for users selecting IDs. Then your goal will
be achieved.
Reference:
Report Parameters (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou (Pactera) -
Vendor Ref. no. not displayed in print preview in vendor aging report
Dear SAP team,
Vendor reference number is not displayed in print preview/print on vendor liabliteis aging report,
but this vendor reference number actually show in report,We are taking report by journal postings,
vendor reference entered in NumAtCard in AP invoice get copied to Ref2 in Journal Entry,then
why it is not showing in print preview/print.
Whether this is an application error / missing functionality ?
We are using SAP Business One 2005 B (7.40.252) SP: 00 PL: 36.
Whether upgrade to latest patch 2005B PL46 will solve this issue ?
JeyakanthanHello Jeyakanthan,
I would like to draw your attention to the enhancements we delivered within Aging Report in 2007 version and plan for 8.8 release.
The primary enhancement in 2007 version is reflecting new concept of Internal Reconciliation with more convenient backward reporting.
Within the 8.8 release ...
- when you generate the aging report you can group the report by customer or sales employee in the customer receivables aging report, and by vendor or buyer in the vendor liabilities aging report;
- when the aging report has been generated, you can view multicustomer/multivendor detailed information in the aging report window. There is no need to double-click each customer/vendor row to view the details.
We would strongly to recommend you to upgrade to 2007 version or join the ramp-up of 8.8 release soon.
Peter Dominik
B1 Solution Management -
Vendor ref. no. not appearing in print preview of vendor aging report
Dear all,
Vendor reference number is not appearing in print preview of vendor ageing report,we have
customized template AGE3 collection report,we have taken print outs before a month,vendor
reference number get printed in report,now it is not appearing
What could be problem ?
Any one faces this issue ?
We are using SAP Business One 2005 B (7.40.252) SP: 00 PL: 41.
Latest patch upgrade to PL:46 will solve the issue ?
Jeyakanthanhi all,
Thru a workaround i brought up vendor reference number in print preview/print,
Applied formatted search in journal remarks of ap invoice thru query
SELECT $[OPCH.NumAtCard]
,this will populate vendor ref. no in journal remarks
which can be displayed in details in aging report.
Is there any solution other than above to bring vendor reference number in print ?
Jeyakanthan
Maybe you are looking for
-
How to swap between to sets of item categories in sales order
Hi, We receive Idocs from a different system that creates sales order in the R/3 system. For some of these, we want to be able to use an alternative sourcing mode - basically switch between standard POs and 3rd Party POs. The orders has many items, a
-
my ipod is recognized by the computer but itunes and the ipod updater does not recognize it. it wont play any songs and its stuck in disk mode.
-
Adding to the List of Bionic's Issues.....
Ok these are some of the Issues I'm experiencing on my new Bionic...I upgraded from a Droid Incredible and I had to warranty replace the device twice so I'm fairly used to having to Activate a new device, but most people know that having to do that c
-
Hello, Yesterday I tried installing my new MSI GTX560 graphic card. It's properly connected to my mainbord, and screwed in place. Today, I found out my computer isn't using the graphic card, but the onboard graphics. The graphic card could not be fou
-
How to add live guitar to an iMovie?
I want to film myself playing guitar to a song on iTunes. I have the song playing OK but when I record myself, via the built-in iCam, and then play the movie back, I can only hear my guitar, not the song. I have tried adjusting all the setting on bot