Unable to print in excel format
Hi,
I develop report in xml publisher and my apps version is 11.5.10.2
But my report is not printing in excel format.
Any idea on this....
Regards
Zaheer
Hi Zaheer;
Please check Hussein Sawwan greatest previous post:
Re: Unable to View Excel Output File Created by XML Publisher
Regard
Helios
Similar Messages
-
Is it possible to give Direct print of Excel format XML Report
Guru,
As far my understnading Excel Format reports are not supported for direct print in EBS,
I could see the following error in CM request logfile and came across couple of metalink Note : 387104.1 & 1317314.1
However iam not sure on this functionality .
Please provide your experience on this case.
<stdin>: File does not begin with '%PDF-'.
lp: stdin is empty, so no job has been sent.
APP-FND-00500: AFPPRN received a return code of failure from routine FDUPRN. Program exited with status 1
Cause: AFPPRN received a return code of failure from the OSD routine FDUPRN. Program exited with status 1.Hi,
Initially I get the Form Name by calling FM: SSF_FUNCTION_MODULE_NAME and I store it in l_fm_name. now calling the FM: l_fm_name like below:
LOOP AT i_item INTO wa_item.
CALL FUNCTION l_fm_name
EXPORTING
wa_item = wa_item
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
As I have multiple form need to print, I am calling the smartform in loop. -
Unable to save in excel format
Hi Experts,
My client is using Windows 7 Enterprise (32 bit) and MS Office 2010 (32 bit) and SAP ECC 6. The problem is when we click on expert mode we were not able to save in excel format. The report is coming blank. Is there any settings to be changed in excel.
Thanks in advance
NarayananHi.
1. Before install 10 office, uninstall previous version.
2. Reinstall SAP(uninstall it befor)
3.'enable all macros in Excel
4. Trust access to Visual Basic Project
Save, Close Excel and run SAP...
SAP will support 2010 office from 7.20 version -
I have just installed my new HP Office Jet Pro 8600 and I am unable to print from EXCEL...Can anyone advise please?
Do you receive any error messages?
Yes, the error message I receive is "current printer is unavailable. Select another printer". This error message is shown when I try to print a excel or a PDF file. However, I have no issues printing from Word, or the web. Also, I have a second computer signed on from a wireless network, and it can print everything without an issue.
What options do you get when you try to print from Excel?
It gives me the option to use "Microsoft XPS Document Writer" or "Quickbooks PDF converter". However, neither of these options allow me to print.
Does it work from other Office programs?
Yes, Microsoft Word.
How is the printer connected to the computer?
The printer was originally a wireless connection when the problem occurred. I then switched to a USB connection, with the same results. I then tried an Ethernet wired connection, but no change. Currently, we are on a USB wired connection.
What version of Excel is being used?
"Microsoft Office Excel 2007" I belief it is the home office edition.
What operating system does the computer use?
The computer having an issue runs Windows 7. My second computer runs XP, and has no issues.
How was the printer driver installed? Was it from a CD or a download? Was it the full featured driver or basic print driver?
The printer was installed by a CD. It is unclear to me whether or not it is basic or full, I just popped in the disc the printer came with. It installed version 24.2.0
We recently purchased this printer in order to replace our old printer for office use. The old printer has incredibly slow, and sometimes did not print things. We first set up the new computer (HP Officejet Pro 8600 N911a), and added it to our wireless network. We then added it to our main computer, and the printer would not print from excel. However, we found we were able to print things without an issue from our second computer once it was added.
We have tried rebooting, reinstalling, using every form of connection, without progress. -
Unable to print xml publisher report in excel format in R12
Hi All,
We are unable to print xml publisher report in excel format in R12. We were able to see the excel output but it's printing junk characters while printing and it's printing without any issue with PDF format.
Please let me know how to fix this issue.
Thanks,
RajaHi Raja,
I presume you have gone through the debugging process of testing your template locally first to get the expected result.....
If yes, this note might probably be helpful "Changing Output Format to RTF or Excel in XML Publisher Request Does Not Display Output Correctly (Doc ID 404512.1)"
Good Luck,
Lamine Balde -
Unable to save webi report in excel format
Hi All,
I have a question. I recently upgrsded my internet explorer from IE 7 to IE 8.
Previously, i was able to save webi reports in excel format without any issues.Even after upgrading to IE version8, i was able to save webi reoprts to excel without any issues for 2 weeks.
Suddenly I am unable to save Webi reports in excel format now.When I select the Save to my computer as Excel option the saving dialog box appears and hangs forever.
Can someone please advise me on this??
Please hel as it is very urgent.Hi All,
Trying to replicate WEBI Excel Download issue.
Operating system : Windows 7
Internet Explorer : IE8 Version 8.0.7600.16385CO.
Jre Version : 1.6_ greater than 1.8 version.
If anybody having above specifications in your machines Please try to save a webi reports to excel format and send me the results. -
I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14. I have been able to print larger pictures. I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this? I need 16x20's
I am shooting with a Nikon D60 on Fine Format and unable to print larger than 11x14. I have been able to print larger pictures. I am told iPhoto reduces the size of the file when uploaded. Is this true? If so how can I change this? I need 16x20's
-
Unable to print e-mail messages from my Mac book pro directly to my HP ink jet printer. Can print from Word, Excel, Safari. E-mail messages only print the date And "sent to" name, the remainder is blank.
If you haven't done so already, try resetting the printing system.
Reset Printing System -
Unable to print in 100 MM 36 MM format.
Hi All,
We are facing a print problem where we are unable to print in 100MM X 36MM Page Format(ZSTICKE which is created) This is of customized type, With LOCL output device the spool request is not getting generated. However we are able to see the print preview.
while printing it gives a error "**Error while calling the smartform**"
Now we tried to run a print with A4 (DINA4) size page format and it worked, we are able to see the print preview and also print.
Could you please let us know what could be the issue as it works with A4 but not with customized page format(It however gives print preview even with customized page format
Thanks in Advance.
VijayHi Vijay,
In SPAD Tcode u have to assign the page format to the printer and then only it will works. other wise it will show error.
Regards,
Sathis -
Steps Followed
1. Prepared RDF report and the same linked in EBS runs successfully.
2. Changed output format to XML and style as A4 and style required selected
3. Prepared RTF file in Word
4. Created Data Definitions in XML Publisher Administrator
5. Created Template in XML Publisher Administrator
6. Uploaded RTF file Thru template in XML Publisher Administrator
When executing the request excel format is coming but no data was fetched on only header and field name.
As an example attaching excel output file, RTF template and Reports RDF file.
Please check and support.
Thanks
SKBWhat happens is the output format is PDF? Do you get any output?
Also please check the RDF's SQL query. It might not be fetching any rows.
Cheers,
ND
Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered. -
Hi there! I was wondering if you could help me with this case.
Old computer: Mac G4 (purchased in 2002)
Old OS: OS 10.4.11 (Tiger)
CPU: Dual 1.25 GHz
Memory: 2 RAM
Software: Photoshop 7
Hardware: Large format printer: Epson 11880 (64” wide monster). Prints large posters, banners, etc.
As you can see, it is time for an upgrade...
New computer: iMac
New OS: OS 10.6.3 (Snow Leopard)
Processor Name: Intel Core i7
Processor Speed: 2.8 GHz
Number Of Processors: 1
Total Number Of Cores: 4
Memory: 16 GB
Software: Photoshop CS4
Hardware: Large format printer: Epson 11880
Situation: We hooked up everything and managed to print on the 11880 printer 2 times and printed two large format prints. On the third attempt, we encountered a serious problem...
Problem: After opening a file in Photoshop and sending it out for printing in the large format Epson printer, the file goes to the printer queue and stays there for 6 seconds, and then it disappears. It does not print. :-(
What we have done so far:
We made sure we downloaded the latest printer driver for this printer from Epson’s website.
The printer driver is correct. The computer talks to the printer and we are able to execute all the commands from the printer utilities panel. (i.e. check ink levels, clean heads, etc.)
And yes, the printer is okay, because we have been using it with the old G4 machine for about a year.
This problem got so frustrating, that we thought that something we transferred during the computer installation might be the culprit. So at one point we erased the hard drive on the new computer and reinstalled the operating system, and have not put any files from any old computers into this machine. The computer has nothing else in it. Except: The operating systems, and the Mac applications that come when the Mac comes out of the box. The only other program installed in it is Photoshop CS4 and the printer driver.
We were wondering if this was just a printing problem, period. So we added a small printer to the computer - and old Epson 2200 we have. We sent a file to this printer and there is not problem.
Perhaps, the file size might have been an issue? It does not matter. We can send a large 60 MB file to the printer or a small photograph measuring only 8 x 10, and these will linger in the queue for 6 seconds, and disappear never to be printed.
Temporary relief came when we got rid of Adobe Photoshop’s Preferences file. After getting rid of the file and allowing Photoshop to reconstruct it, we managed to print two large files on the printer. Then it failed again. Tried getting rid of the preferences again, and the trick did not work anymore. :-(
Another temporary relief came when we created another user in the computer. On the new user account it printed again a couple of times only to fail later.
And yes, the printer WILL print from other Mac programs. If for instance, we open a file on Preview, and send it to the printer and the file will be printed. And yes, we have managed to print very large files with this method.
In the last couple of days, we have spent 3 hours on the phone with the guys at Epson. They verified the driver and because the computer seems to be communicating with the printer and printing from other Mac applications, they suspected that the problem is with Adobe.
We called Adobe once, and spent 30 minutes with an Indian fellow who concluded that the problem was with how the computer handles the spooling. According to him, Photoshop sends the file to the computer and the computer seems to get rid of it. So he passed the buck and told us that the problem was with Apple.
We called Apple and spoke for 30 minutes with a friendly technician, who transferred us to a higher level techno-geek. I spent 1 more hour on the phone with Apple, and we tried everything. We went through Adobe’s knowledgebase and tried every suggested solution (see Adobe’s KB406452). It was with him that we found a temporary fix of removing the Preferences file, but the solution was short lived. He finally thought the problem was with Adobe as the printer is able to print from all applications EXCEPT Adobe Photoshop.
We called Adobe for the second time...and after waiting on hold from 1 entire hour, we got an Indian technician, that bless his heart, had a very thick accent and had no expertise, in my opinion. He was good at collecting data and he even made me share my computer screen so that he could troubleshoot the problem. After being constantly put on hold by him (because he had to consult with someone else), he passed the buck and said that it was Apple’s problem. I just told him that it was not as likely because all programs print EXCEPT Photoshop. After trying what I would consider a “hail Mary” of DELETING all the printers from my Library folder, and not replacing them, he recorded a case number for another Adobe technician to call us in a few days.
Because the above technician completely blew the Library, I just erased and reinstalled the OS. This time, I did not allow the OS to be updated - from 10.6.2 (that comes in the box), to 10.6.3. We tried printing using the 10.6.2 and had the same problem. :-(
Conclusion: I think it is a problem of Adobe CS4 not getting along with Apple’s new operating system. The Epson printer is doing fine, because it has been a product that has been in the market for almost 3 years. What is disappointing is that none of the companies wants to man up and say that it is a problem and that they are willing to work on it. Instead they pass the buck to the next company.
I can’t believe I am the only person experiencing this. Has anyone had this problem, and have you found a solution or workaround for it?Dear Doyle, John and Gator Soup,
Thank you for your kind replies to my problem.
PS is assigned 70% RAM. In fact, I have never had so much RAM in my life. Files open at lightning fast speed! :-) We have never considered a RIP as we do not have an intense workload. In fact all the files we have tried to print print well on our old G4 with Tiger and Photoshop 7, which at the moment has saved our butt. However it would be nice to get the new faster machine with Photoshop CS4 to talk to the Epson 11880.
Yes, we are printing directly to the printer. We have hooked up the computer via a 6 ft USB cable to the unit.
The specs and pixel dimensions of a typical file we print are:
Type of file: tif (in this case it is an RGB file) // However, we avoid any color management from the computer or the printer when printing it at this time.
File size: 60 MB
Pixel size: 6796 x 3100
Print size: 34" x 16" @ 200 dpi
I have not tried saving it as a pdf yet. Will try that next.
I did go to the Console on the Mac though, and recorded its activity between 5:14 pm - 5:19 pm when I tried to print a file.
Remember, the symptoms are: We send a file to the printer...The file goes to the printer queue, and it lingers there for 6 seconds. The file then disappears.
Although there is a cryptic message of "invalid colorspace" in the log, I don't believe that the file is corrupt. First because we have tried several files, second because smaller versions of these can be printed in another Epson 2200 printer, and third because the large format images can still be printed using our old G4 machine with Tiger and Photoshop 7.
This might provide me with extra ammunition for when I call both Adobe and Apple on Monday. Apple has been quite good on customer support - particularly when they upgrade you to higher level geeks. ;-) Do you have any idea I what time I should call Adobe so that I can get people on the western hemisphere to answer the phone? It seems that after a certain time they start speaking with an Indian accent over there.
Enclosed, for whatever is worth, is the Console's log:
5/15/10 5:14:46 PM System Preferences[2947] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
5/15/10 5:14:46 PM [0x0-0xf00f0].com.apple.systempreferences[2947] System Preferences: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
5/15/10 5:14:46 PM System Preferences[2947] .scriptSuite warning for result type of command 'timedLoad' in suite 'SystemPreferences': the type NSNumber ('long') doesn't match the result Apple event code ('doub').
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] Adobe Photoshop CS4(2991,0xa0818500) malloc: *** error for object 0x4b00880: Non-aligned pointer being freed (2)
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] *** set a breakpoint in malloc_error_break to debug
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] Adobe Photoshop CS4(2991,0xa0818500) malloc: *** error for object 0x4e14390: Non-aligned pointer being freed (2)
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] *** set a breakpoint in malloc_error_break to debug
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] Adobe Photoshop CS4(2991,0xa0818500) malloc: *** error for object 0x4e14410: Non-aligned pointer being freed (2)
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] *** set a breakpoint in malloc_error_break to debug
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] Adobe Photoshop CS4(2991,0xa0818500) malloc: *** error for object 0x4e14490: Non-aligned pointer being freed (2)
5/15/10 5:17:06 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] *** set a breakpoint in malloc_error_break to debug
5/15/10 5:17:08 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] file://localhost/Applications/Adobe P
5/15/10 5:19:34 PM [0x0-0xf60f6].com.adobe.Photoshop[2991] Sat May 15 17:19:34 Norm-Nielsens-iMac.local Adobe Photoshop CS4[2991] <Error>: CGImageCreate: invalid image colorspace: NULL. -
Unable to print all photos in large format
Hello: I'm trying to print a large format (13x19) poster with about 80 images, each about 1.5" x 1.0". I have done this successfully during the past few months, but now only about 10 images show up in the preview panel when I set up to print; the rest of the rectangles consist of a big X from corner to corner, and a question mark in the center. A test print in grayscale on cheap paper produced exactly that same image. This is true for 11x17 as well as the 13x19 sizes. I have no idea why this is happening, and hope someone out there can tell me how to fix the problem.
Thanks!
medrenMedren...about the time you were posting your note, I was posting a similar note to the iWorks 09 forum, asking for help re exactly the same problem. I was working on a large file of 60+ high-res photos to print as a banner. Looked good, but when I went to print to pdf (for print shop), less than half the photos were showing. Rest were empty boxes with "?", just like you describe. The one response I got back said I probably didn't have enough ram memory. Problem is, I have max ram installed. So I pulled all photos, opened in Photoshop, and cropped them there (instead of using Pages' "Mask") and also reduced size of many of them. It worked. I now have a file with all photos showing that I can take to printer tomorrow. Hope this is a help to you!
-
Issue while exporting report in Excel Format
Hello,
I am facing problem while exporting the report in Excel Format. After analysis, I think that it could be due to two reasons, either we are using wrong versions of Jars, or we are using wrong API. Here is the code, approaches and problems we are facing. Please help.
First approach we are using is:
// using basic API
import com.crystaldecisions.reports.sdk.ReportClientDocument;
// get client document from crystal report API and open the report by specifying the report name, with path
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open( reportPath, 0 );
// give chance to extending classes to configure the report document by POJO or by sql parameter etc, just adding the parameters infromation using ParameterFieldController
configureReportDocument( reportClientDoc, reportMetadata, reportData, reportContext );
// get data source of crystal report
Object reportSource = reportClientDoc.getReportSource();
// export the data - we have also tried with MSExcel format
ReportExportFormat exportFormat = ReportExportFormat.recordToMSExcel;
LOGGER.debug( "exportFormat[" + exportFormat + "]" );
ByteArrayInputStream byteArray = (ByteArrayInputStream) reportClientDoc.getPrintOutputController().export(
exportFormat );
Problem Faced: Specified Excel format is not supported.
Second Approach: We come to know that excel format is supported with new releases and with occa package.
Then we tried with import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument; It ask to set the ReportServer. When we are trying to set the server as
reportClientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
Application is unable to find 'ReportClientDocument.inprocConnectionString' property. It seems like we are using some old jars. However we have downloaded the latest released jars for eclipse 2.
Please help for it. Issue is to export the report in excel format, which is currently working fine for PDF. If this problem is related to Jars, please suggest the path to download the latest jars. We also looking for the latest jars like rasapp and rascore etc. But these are not available with Crystal Report for Eclipse 2 release.
Waiting for urgent help. Thanks you..
Regards,
MohitHi,
Send me Environment Details .
Here is the code snippet for exporting report to excel format:
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.definition.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
<%@ page import="com.crystaldecisions.sdk.framework.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.managedreports.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%
String username ="Administrator";
String password ="";
String cmsname ="localhost:6400";
String Authen ="secEnterprise";
//connecting to Enterprise
IEnterpriseSession es = CrystalEnterprise.getSessionMgr().logon(username,password,cmsname,Authen);
//get the report App Factory form the Crystal Enterprise
IReportAppFactory appFactory = (IReportAppFactory) es.getService("","RASReportService");
//get the infostore service form the Crystal Enterprise
IInfoStore istore = (IInfoStore) es.getService("","InfoStore");
//get the report by name from crystal Enterprise
IInfoObjects iobjects = istore.query("Select * From CI_INFOOBJECTS Where SI_NAME = 'sampleramz2.rpt' and SI_INSTANCE = 0 ");
//open the report in the report doc object.
ReportClientDocument Doc = appFactory.openDocument((IInfoObject)iobjects.get(0), 0, Locale.ENGLISH);
// WORKING WITH THE PRINT OUTPUT CONTROLLER
//Use the report documents PrintOutputController to export the report to a ByteArrayInputStream
ByteArrayInputStream byteIS = (ByteArrayInputStream)Doc.getPrintOutputController().export(ReportExportFormat.recordToMSExcel);
// EXPORTING THE REPORT
//Create a byte[] (same size as the exported ByteArrayInputStream)
byte[] buf = new byte[2000 * 1024];
int nRead = 0;
//Set response headers to indicate pdf MIME type and inline file
response.reset();
response.setHeader("Content-disposition", "inline;filename=ramz");
response.setContentType("application/xls");
//Send the Byte Array to the Client
while ((nRead = byteIS.read(buf)) != -1)
response.getOutputStream().write(buf, 0, nRead);
//Flush the output stream
response.getOutputStream().flush();
//Close the output stream
response.getOutputStream().close();
%>
Let me know any information is needed,
Regards,
Rameez -
Export the Report in Excel format
Hi,
How to export the Report in Excel format directly from the SAP to my Desktop.
Plz. give me the process???
Thanksuse this,
INCLUDE OLE2INCL.
INCLUDE EXCEL__C.
AND
H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT, " font
H TYPE I.
AND
PERFORM SUB_GET_DATA.
'get data here
PERFORM SUB_POP_DATA.
'populate data here
AND
PERFORM SUB_DISP_EXCEL.
*& Form SUB_DISP_EXCEL
FORM SUB_DISP_EXCEL.
START EXCEL
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
SET PROPERTY OF H_EXCEL 'Visible' = 1. " for printing o/p line by line in excel sheet
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 10 'Mat Doc Number'(001) 'R'.
PERFORM FILL_CELL USING 1 2 1 4 'Item'(002) 'R'.
PERFORM FILL_CELL USING 1 3 1 10 'Mat Doc Date'(003) 'R'.
PERFORM FILL_CELL USING 1 4 1 10 'Vendor'(004) 'R'.
PERFORM FILL_CELL USING 1 5 1 20 'Mat Doc Item amount'(005) 'R'.
PERFORM FILL_CELL USING 1 6 1 15 'Material price'(006) 'R'.
PERFORM FILL_CELL USING 1 7 1 4 'Currency'(007) 'R'.
PERFORM FILL_CELL USING 1 8 1 18 'Material'(008) 'R'.
PERFORM FILL_CELL USING 1 9 1 30 'Material Desc'(009) 'R'.
PERFORM FILL_CELL USING 1 10 1 19 'Qty in Unit of Entry'(010) 'R'.
PERFORM FILL_CELL USING 1 11 1 19 'Qty Received'(011) 'R'.
PERFORM FILL_CELL USING 1 12 1 4 'Unit of Entry'(012) 'R'.
PERFORM FILL_CELL USING 1 13 1 20 'Mat Group'(013) 'R'.
PERFORM FILL_CELL USING 1 14 1 16 'Vendor Invoice'(016) 'C'.
LOOP AT T_OUT INTO W_OUT.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 10 W_OUT-MBLNR 'R'.
PERFORM FILL_CELL USING H 2 0 4 W_OUT-ZEILE 'R'.
PERFORM FILL_CELL USING H 3 0 10 W_OUT-BLDAT 'R'.
PERFORM FILL_CELL USING H 4 0 10 W_OUT-LIFNR 'R'.
PERFORM FILL_CELL USING H 5 0 20 W_OUT-DMBTR 'R'.
PERFORM FILL_CELL USING H 6 0 15 W_OUT-NETPR 'R'.
PERFORM FILL_CELL USING H 7 0 4 W_OUT-WAERS1 'R'.
PERFORM FILL_CELL USING H 8 0 18 W_OUT-MATNR 'R'.
PERFORM FILL_CELL USING H 9 0 30 W_OUT-MAKTX 'R'.
PERFORM FILL_CELL USING H 10 0 19 W_OUT-ERFMG 'R'.
PERFORM FILL_CELL USING H 11 0 19 W_OUT-WEMNG 'R'.
PERFORM FILL_CELL USING H 12 0 4 W_OUT-ERFME 'R'.
PERFORM FILL_CELL USING H 13 0 20 W_OUT-WGBEZ 'R'.
PERFORM FILL_CELL USING H 14 0 16 W_OUT-XBLNR 'C'.
CLEAR W_OUT.
ENDLOOP.
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTIN G #1 = 2.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
PERFORM ERR_HDL USING 'Unable to create workbook'.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2. "----------can remove-------THIS IS FOR STAY AT LIST
PERFORM ERR_HDL USING 'Unable to create new workbook'..
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL USING 'Unable to free workbook'.
ENDFORM. " SUB_DISP_EXCEL
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL USING I J BOLD COL VAL I_HORIZON_ALIGN.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL USING 'set cell object error'.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL USING 'set value object error'.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL USING 'set font object error'.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL USING 'set bold object error'..
SET PROPERTY OF H_ZL 'ColumnWidth' = COL.
PERFORM ERR_HDL USING 'set columnwidth object error'.
IF NOT I_HORIZON_ALIGN IS INITIAL.
IF I_HORIZON_ALIGN = 'L'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLLEFT.
ELSEIF I_HORIZON_ALIGN = 'R'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLRIGHT.
ELSEIF I_HORIZON_ALIGN = 'C'.
SET PROPERTY OF H_ZL 'HorizontalAlignment' = XLCENTER.
ENDIF.
ENDIF.
PERFORM ERR_HDL USING 'set Alignment object error'.
ENDFORM. "FILL_CELL
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM ERR_HDL USING VAL.
IF SY-SUBRC <> 0.
WRITE: / VAL.
STOP.
ENDIF.
ENDFORM. " ERR_HDL -
PDF: Unable to print a document as PDF from APEX when using the BI Publishe
Hi,
From an APEX application, I am unable to print a document in a PDF format when using the Oracle BI Publisher.\
Here is the configuration:
1) Server A is W2K3 and hosts the Oracle BI Publisher server, with IP address ip01.
2) Server B is a OEL5.2 and hosts the database server of the APEX application, with IP address ip02.
3) Machine C is a W7 desktop from which through an URL both the APEX applicationn and the BI server are accessed, with IP address ip03.
4) The APEX application is configured with the following to use the Oracle BI Publisher:
- Printer server: Advanced (requires Oracle BI Publisher)
- Printer server protocol: HTTP
- Printer server host address: ip01
- Printer server port: 9704
- Printer server script: /xmlpserver/convert
- Network services are enabled (at least I did get any warning/error message)
From C, I access the the APEX application through its URL, if I try to download a page by selecting PDF in the download section of the interative report section for that page, I am unable to open if and get the error:
<file>. pdf file can not be opened because the file type is not supported or because it is damaged (because, for example as an e-mail attachment is not sent and correctly decoded)
Yet, still from C, I am able to open any other PDF document.
The same way, still from C, acessing the APEX application through its URL, I have a query report defined with a PDF output format. Then, when I test the report (Test Report in the Report query) for that query, I get the 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.
At first sight this could be a wong entry in the priinter configuration for APEX. But with this address, through the URL I can log in to the Oracle BI Publisher server.
Does someone has an idea what the problem could be?
Thanks for any tips.How are you trying to print to pdf?
Don't go via PostScript or Acrobat Distiller, which are old deprecated technology.
You use:
Menu > File > Print > PDF (button bottom left) > Save as PDF…
Peter
Maybe you are looking for
-
Photo stream not showing up in iCloud.
My photo stream is not showing up in my iCloud account. My settings on my iPhone all indicate that it should be backed up there. Can someone help?
-
Problem with the "make config" command
Kernel Compilation from Source for New Users I download the linux-2.6.37-ARCH source files and copied them to /usr/src/.Then i used "cd linux-2.6.37-ARCH" to move to that directory so i could use the "make config" command.Now,when i use "make config
-
Video playback stops and refuses to load.
I have F/F 27.0, Flash 12.0, and the WinVista OS. The modem lights also show no activity when this occurs.
-
Problems with CK-100 in 2003 Chrysler Grand Voyage...
I just installed a CK-100 in my 2003 Chrysler Grand Voyager using a ISO adapter cable from KRAM. The installation of the cables was easy. I used the configuration in which the CK-100 uses the car speakers and both phone and music from the phone are s
-
My Ipod screen is in an xray mode not sure how it became that way or how to change it back.
My IPod is constatly in an xray apperance I don't know how it got that way or how to get it changed back to regular screen.