Is it possible to print a form in APEX 2.1?
Hi,
Is it possible to print a form in APEX 2.1? I'm able to export a report in cvs, but not a form.
Thanks.
If you're just looking to export a single row via CSV, then yes, you can add that functionality to your Form page in any release of APEX.
Have a look at a blog post I made quite some time ago:
http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
Using this, you could limit the query to only bring back the row that is displayed in the form.
Thanks,
- Scott -
http://spendolini.blogspot.com
http://www.sumneva.com
Similar Messages
-
Is it possible to print a form automatically when submitted?
I would like to have forms automatically sent to a printer when they are submitted. Is this possible?
Thanks!Hi;
No, tjhis isn't something that FormsCentral supports.
Thanks,
Josh -
Is it possible to print web form data once it is added to the CRM cases.
I have a client who needs to have volunteers fill out a one page activity report. I can create the a Web form to acquire the data. The data will then be stored in the CRM as a case. What I am having trouble with, is how to easily track the cases and, more importantly, print them out individually in a readable format. Is this possible?
Hi,
The only option is to create a customer/case report which will output the data in a spreadsheet. Then you can pull the individual records accordingly and print.
I do not see any other workaround to this at this stage.
Kind regards,
-Sidney -
I was wondering whether it is possible to add HTML forms in apex?. I am trying to submit the form using javascript:doSubmit but i am not able to? Can anyone help?
Thanks,
MonicaPlease...Post to the appropriate forum
Sim -
I'm wondering if there is any way to view the results of the form other than in a table? Is it possible to print responses one by one in PDF format, or word, etc? I'd like to create a form for proposal applications, and the spreadsheet format results are nearly unusable for this type of form.
Hi Nalani500 ,
Yes, you can print the response in a PDF by following the steps suggested below.
1) Go to the response file
2) Select the response you want to print
3) Click on Save as PDF button and it would save the selected response in PDF format.
Thanks,
Vikrantt Singh -
Is it possible to create a form which can be filled out during service work and then printed
I want to build a form that I can fill out on my laptop as I perform service work. The work being performed varies from job to job. I would like to be able to print out only the work I perform, and not have a bunch of blank spaces for things not done. Is that possible with this program?
It might be, but the type of thing you're describing is perhaps better implemented with a dynamic XFA form created with Adobe's LiveCycle Designer, which came with Acrobat prior to version 11 and is now a separate product. It allows you do add/remove groups of fields (e.g., one or more rows, an entire sections, etc.) at run-time, causing the form to expand/contract as the fields are added/removed. This involves some scripting. There is a forum for Designer here where you can ask more questions.
It's possible to create a form with Acrobat that dynamically adds entire pages (templates) at run-time, overlays the contents of a (normally hidden) template on an existing page, as well as show/hide fields, but automatic reflow of page contents is more problematic. This too involves scripting and you can ask about it in this or the Acrobat JavaScript forum. -
Print report to client printer from forms
Hi,
I need to print a report directly to a client printer.
There is a utility called ORARRP - Oracle Reports Remote Printing Utility.
But the document I saw was from Oct 2001 - so is this still the only and best option ?
I'm using RUN_REPORT_OBJECT in forms to launch the report.
This works fine when the DESTYPE is FILE and DESNAME = PDF
The PDF-outputt is then successfully shown with WEB.SHOW_DOCUMENT
When changing DESTYPE to PRINTER and DESNAME to clients printername then report won't run. "Report filed with error message TERMINATED_WITH_ ERROR".
Is it possible to print directly to a client printer using RUN_REPORT_OBJECT ?
(Our client printers are not networkprinters)
Environment:
Forms [32 Bit] version 9.0.4.0.19
Report Builder 9.0.4.0.33
Reportsserver on linux
Thanks !
Sam(Our client printers are not networkprinters)This means you cannot print from the server directly on the client printer with destype=printer, since the server cannot see the printer.
So, a manual print command by the user from the browser or the orarrp utility are your options. -
Hi Experts,
I'm using SSF_OPEN and SSF_CLOSE, to print multiple smartforms. In between SSF_OPEN and SSF_CLOSE, there is a loop at a smartform. The output prints each smartform in different pages. Is it possible to print the second smartform in the first page since there is still space for printing there?
Thanks in Advanced,
JackHi Jack,
As per my knowledge,
you can't print two smartform in single page because smart form having own page-size.
If your layout page is A4 size then first layout print in A4 page and next layout will be go-to next print page. but if you have different kind of page size for both layout then you can control from printer side then that case both page will be printed in single print page.
Regards,
Prasenjit -
Hi folks,
I had an question, related to printing the form using sapscript. I am printing a sapscript form using two printers. The first one is HPLJ4000 : HP Laserjet 4000 and the model is Dell Printer and using this printer the form is printing fine.
However when I print using another printer HPLJ4000 : HP Laserjet 4000 but a different model HPLJ 2100TN some of the data is not printing in the right font size. The font I am using is HELVE and I believe it is not recognising it.
I do not know how to work on the issue, asked the Basis guy too he has no clue about it.
Any thoughts or ideas will be helpful?
Thanks,
SkHi
See this OSS notes
OSSNote:960341
Symptom
In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
Other terms
CONVERT_OTF, SAPscript, Smart Forms
Reason and Prerequisites
The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
Example:
%Charwidth values from HP4300 HELVE 060 normal
/Widths
[ 278 333 500 633 633 1000 758 333 333 333 633...
Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
Solution
Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
Header Data
Release Status: Released for Customer
Released on: 30.06.2006 12:44:06
Priority: Recommendations/additional info
Category: Consulting
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
OSS Note: 776507
Symptom
Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
Other terms
SAPscript, SmartForms, printing, device types, OTF
Reason and Prerequisites
Help required to choose proper fonts in a SAPscript or SmartForm
Solution
When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
1) The language version of the form used to produce the printout.
Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
3) The output character set of the device type
Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
4) The set of available printer fonts for a given device type
When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
Note on SAPscript/SmartForms Print Preview:
The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
Which fonts are suitable for a given language?
Language(s): Font family to use in a form:
Latin-1 (Western Europe/Americas) *******
DE,EN,FR,ES,NL,SV COURIER, HELVE, TIMES
(LETGOTH, LNPRINT)
Latin-2 (Central Europe) ****************
PL, CZ COURIER, HELVE, TIMES
ISO 8859-4 (Baltic) *********************
ET, LT, LV COURIER, HELVE, TIMES
ISO 8859-5 (Cyrillic) *******************
BG, RU, SR, UK COURCYR, HELVCYR, TIMECYR
ISO 8859-7 (Greek) **********************
EL COUR_I7, HELV_I7, TIME_I7
ISO 8859-8 (Hebrew) *********************
HE COURIER, HELVE, TIMES
ISO 8859-9 (Turkish) ********************
TR COURIER, HELVE, TIMES
Simplified Chinese **********************
ZH CNHEI, CNKAI, CNSONG
Japanese ********************************
JA JPMINCHO, DBMINCHO, DBGOTHIC
Korean **********************************
KP KPBATANG, KPDODUM, KPGULIM
KPGUNGSE, KPSAMMUL
Traditional Chinese *********************
ZF TWDPHEI, TWMING, TWSONG
Thai ************************************
TH THANGSAN, THDRAFT, THVIJIT
Arabic (Unicode systems only) ***********
AR ANDALE_J
Verify your output by examining the OTF data
When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
Goto->Display Requests->Settings
and choose
Display Mode: Raw
Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
//XHPLJ8000 0700 00000000001
IN04EALEXTEST_ZEBRA
IN05%PAGE1
OPDINA4 P 144 240 1683811906000010000100001
IN06%WINDOW2
MT0024401289
CP11000000E
FCHELVE 120 00109XSF100SF101110000067E X
UL +0000000000000
SW00067
CT00000000
ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
//XHPLJ8000 0700 00000000001
The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
IN04EALEXTEST_ZEBRA
In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
OPDINA4 P 144 240 1683811906000010000100001
The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
CP11000000E
Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
FCHELVE 120 00109XSF100SF101110000067E X
Header Data
Release Status: Released for Customer
Released on: 22.08.2005 09:57:20
Priority: Recommendations/additional info
Category: Customizing
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
BC-SRV-SSF Smart Forms
<b>Reward points for useful Answers</b>
Regards
Anji -
Is it possible to print layout/sapscript in background ?
hello
i need to print some form ( layout/sapscript ) in background
is it possible to print it immediately in background ?
i dont want to keep it in the spool .
This is the following code of my.
submit ****
SUBMIT YMM_VERIFICATION_BCK_GRND
VIA JOB JOBNAME NUMBER JOBCOUNT
with SL_BELNR in TB_BELNR
with SL_GJAHR in TB_GJAHR
with SL_BUKRS in TB_BUKRS
TO SAP-SPOOL IMMEDIATELY ' '
DESTINATION 'LOCL'
KEEP IN SPOOL ' '
AND RETURN.
print ************
itcpo-tdimmed = 'X'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX =
ARCHIVE_PARAMS =
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'YMM_VERIFICATION'
LANGUAGE = SY-LANGU
OPTIONS = ITCPODATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'.
ENDIF.
ENDIF. -
how can i print a survey form?
Sorry it is not possible to print all pages of a HTML form. People would have to print each pages individually as they are filling the form.
You might concider distributing the PDF form instead of the HMTL form
Click on the "Distribute Tab - > Save Submission-enabled PDF" button
The filler could then use the free Acrobat Reader to fill-out the form, submit the data back to you and print it.
Gen -
Can forms be printed without form field outlines?
I'm wondering if it's possible to print forms from Adobe XI Pro so that the form field outlines don't show up in the final print. I just want to be able to print all of the information that's entered into the form, but not have the boxes show up all over the page. Make sense? Anyone have an idea as to how this can be done?
Hi;
You can refer to this post where another user asks a similar question: http://forums.adobe.com/message/5817708#5817708
Thanks,
Josh -
Is it possible to print current popup screen or area like ABAP container?
Is it possible to print current popup screen or area like ABAP container?
Hi Zhiqiang,
The user can mark the content and select in the browser the option to only print the selected area. Printing, which is controlled from the background, should be done using the server-built-in technologies, such as Adobe integration, SmartForms, etc. That way forms can be printed in i.e. different languages.
Best regards,
Thomas -
Dunning Level needs to update without printing the Form
HI,
we have 4 level dunning, we have a requirement that when the customer reaches Level 4 dunning, The process is off the system - Meaning no Correspondance from SAP to be issued.
Is it possible for standard SAP dunning to update the Customer Master to Level 4 without printing the form?
We remvoved the Dunning form associated to level 4 but when the dunning program reaches level 4, its not updating the Customer master data with Dunning Level4. The last update on the customer master is level 3.
Is printing dunning letter is a mandatory for the Dunning program to update the customer master data with the Dunning level?
Has anyone got a workaround or solution for this situation.
Thanks
KemaHi Kema,
How you doing? Hope all good.
Well the Customer Master update is done by the form printing program so printing form will be needed to update the customer master. The work around would be to have dummy blank form. If you are doing a fax or email then you can control the sending from user exit.
Hope this helps.
Francis Yesudas -
Is it possible send several interactives forms in one only email?
Hi again experts!
I would like to know if is it possible attach many interactives forms in one mail.
In order to do personnel evaluation we send an e mail to Departement Manangers attaching an interactive form for every employee in his or her Department.
I'd like send only one email for every manager.
Do you think is it possible?
If yes, some idea?
Thank you very much,
GloriaHi gloria,
Yes it's possible to do it .
When you create an e-mail with BCS functionnality you can add several attachment to it .
Here is a sample code for this .
Best regards.
Bertrand
TYPE-POOLS : abap .
DATA : data_for_update TYPE zdemopdf ,
hexa TYPE solix_tab.
DATA : fm_name TYPE funcname ,
param TYPE sfpoutputparams,
doc_param TYPE sfpdocparams ,
output TYPE fpformoutput .
** CLASS-DEFINITIONS
DATA: send_request TYPE REF TO cl_bcs.
DATA: document TYPE REF TO cl_document_bcs.
*DATA: sender TYPE REF TO cl_sapuser_bcs.
data: sender TYPE REF TO if_sender_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
** INTERNAL TABLES
DATA: l_mailtext TYPE soli_tab.
DATA: iaddsmtp TYPE TABLE OF bapiadsmtp.
DATA: ireturn TYPE TABLE OF bapiret2.
** VARIABLES
DATA: mail_line LIKE LINE OF l_mailtext.
DATA: bapiadsmtp TYPE bapiadsmtp.
DATA: subject TYPE so_obj_des.
DATA : att_subject TYPE so_obj_des.
DATA : w_except TYPE REF TO cx_root .
FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
param-nodialog = abap_true. " suppress printer dialog popup
param-getpdf = abap_true.
doc_param-langu = sy-langu.
doc_param-country = 'FR'.
doc_param-fillable = abap_true.
doc_param-dynamic = abap_true.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZDEMO_PDF'
IMPORTING
e_funcname = fm_name.
*Set subject of the mail
subject = 'Sample Mail with several forms'.
* Set text of the mail
mail_line = 'here it is'.
APPEND mail_line TO l_mailtext .
* Set attachment name
att_subject = 'Sample form'.
TRY.
* Create persistent send request
send_request = cl_bcs=>create_persistent( ).
* Get sender object
sender = cl_sapuser_bcs=>create( sy-uname ).
* Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
* Create the Recipient
recipient =
cl_cam_address_bcs=>create_internet_address( ****** ). " Set the e-mail adress of the recipient
* Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'
i_copy = space
i_blind_copy = space
i_no_forward = space.
* Set that you don't need a Return Status E-mail
CALL METHOD send_request->set_status_attributes
EXPORTING
i_requested_status = 'E'
i_status_mail = 'E'.
* set send immediately flag
send_request->set_send_immediately( 'X' ).
*Build Document
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = l_mailtext
i_subject = subject ).
* add attachment to document
do 5 times.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = param
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4.
CHECK sy-subrc EQ 0.
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = doc_param
data_for_update = data_for_update
IMPORTING
/1bcdwb/formoutput = output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = output-pdf "PDF file from function module
TABLES
binary_tab = hexa.
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = att_subject
i_att_content_hex = hexa.
* Add document to send request
CALL METHOD send_request->set_document( document ).
enddo.
* Send document
CALL METHOD send_request->send( ).
COMMIT WORK.
CATCH cx_send_req_bcs INTO w_except.
CATCH cx_address_bcs INTO w_except.
CATCH cx_document_bcs INTO w_except.
ENDTRY.
Maybe you are looking for
-
Hyperion Planning - What If Analysis
Hi, I have a requirement to do what if analysis. Althouh I know how to Exchange Rate functionality works in HP. Example - If I want to see the variation in COGS USD by chaning the FX rate on-fly.
-
Some PI questions regarding RFC and receiver determination
If we import the design objects in one customer system from another customer system , and in the original system there is an imported RFC , This RFC has been created in the new SAP customer system. My question is do we have to import the RFC again ,
-
There is a commercial on TV about an app called AirPlay, yet I can't seem to find it in the app store?
-
Problem getting HP Officejet J4680 to show up in Solution Center
I changed my router to a Netgear WNR2000 v3, and now I can't get my HP Officejet J4680 to show up in Solution Center. I can print to it, but I now have no way of scanning to files. I've tried uninstalling/reinstalling both software and the printer,
-
Dear All, I am getting the following error while opening the concurrent manager Administer Window: and none of the managers are up and running..!!! The Error is: ORA-00600: internal error code, arguments: [12700], [41258], [96660311], [4], [105091700