Printing different pages by clicking single button
Hi,
I want to print different jsp pages by clicking single button.all process should be done in back ground.Is there any way to do this.
please help me.
thanks
If you are using JavaScript you can do the following:
In the HTML Header add :
<link rel=alternate name="printlink" media=print href="{path to jsp}">
This will cause the jsp/html page pointed at in {path to jsp} when you do a javascript:window.print().
Such as :
<input type="button" class="stdButton" value="Print" name="Print" onClick="javascript:window.print();">
If you have different pages to print you can redirect the link like this:
<input type="button" class="stdButton" value="Other Report" name="OtherReport" onClick="printOtherReport();">
function printOtherReport() {
window.document.getElementsByTagName("link").item(0).href = "{path to other jsp}";
window.print();
window.document.getElementsByTagName("link").item(0).href = "{path to first jsp}";
Similar Messages
-
Hello,
Would need your valuable help on that one.
I have a large PDF File, of which I want to print different page ranges, based on the checkboxes that have been checked by the User.
Ideally, clicking a "print" button would generate the page ranges, based on the checkboxes that are checked and open one print dialog with the pages ranges already indicated in it. Like this, the User can enter once the printer settings (e.g. booklet or duplex) he wishes, which should then be valid for all the pages contained in all the page ranges.
Thank you in advance for any tip!
Cheers
SergePrintParams.constants.flagValues.duplexTypes.DontCare
PrintParams.constants.flagValues.duplexTypes.Simplex
PrintParams.constants.flagValues.duplexTypes.DuplexFlipLongEdge
PrintParams.constants.flagValues.duplexTypes.DuplexFlipShortEdge -
Print multiple pages on a single page in word or from a PDF
I need to print multiple pages on a single page from a PDF (ie: pages 1 and 2 onto a single page, pages 3 and 4 on a single page etc.)
Does anyone know how to do this? Thanks(near the middle in a pull down menu - if you have the small print window click on the triangle next to the printer name to expand the window
In preview the menu shows "preview" until you open it to see more - and
if you have the small print window click on the triangle next to the printer name to expand the window
LN -
How to print PDF report by clicking a button
Hi,
I'm using oracle 10g developer suite. i've developed a form clicking a button calling a PDF report. But i do not want to show PDF report. i want to auto print PDF report by clicking a button.
Plz help me.Just follow the Oracle reports 10g output directly to printer and you will able to print directly
Hope this helps
Hamid
If response is helpful or correct mark it. -
How to print different pages of sap script from diff. trays of printer
Hi All,
I have the requirement in SAP script. How to print different pages from different trays in the printer.
For example page 1 logo and address has to print from tray-1,
page 2 main data print from tray-2,
page 3 footer data print from tray-3.
will appreciate if u come up with solutions asap.
Thanks in advance.Hi,
May be the links given below might help you,
SAPScript:Selecting Different Tray in SAPscript
Print to different output tray in SAPscript/Print Workbench
Regards,
Hema.
Reward points if it is useful. -
Calling different pages in a single sap script based on conditions?
Hi All,
Can anyone please give me an example of how to call different pages in a single sap script based on condition. Eg., i need to call 5 differnet pages from a single sap script based on 5 company codes.
Please help
Regards
PriyaThis approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
SAPscript -
/: Perform get_date in program z_at_date
/: using &p_year&
/: changing &new_date&
/: endperform.
program z_at_date -
form get_date TABLES rec_in STRUCTURE itcsy
rec_out STRUCTURE itcsy..
DATA:
v_year type char10.
sap script and subroutine uses itcsy structure to transmit parameters
first parameter is incoming while second parameter is out going
their function is like an internal table with header line
all data types between SAPscript and subroutine are string.
so, you might need additional conversion.
read incoming parameter with exact name from SAPscript
READ TABLE rec_in WITH KEY name = 'P_YEAR'.
IF sy-subrc EQ 0.
v_year = rec_in-value.
ENDIF.
to return value, use the exact name on the second structure
CONCATENATE v_year v_year INTO v_year.
READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
IF sy-subrc EQ 0.
rec_out-value = v_year.
MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
ENDIF.
endform.
Hope this helps =) -
i have installed about 35 add-ons in my firefox 4 , and it got very slow in browsing sites like facebook and youtube and others. at scrolling through the page or clicking on buttons...etc
this is nit occuring in google chrome in the same degreehttp://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
-
How to 'Print' Dashboard pages as a single document
Hi,
I have few pages in the dashboard, i want to take the print (Or convert to pdf) of all the pages in a single document, that meas when i click on the 'Print' all the pages exist in the dash borad should be printed in single document.
Thanks,
BVGreetings,
What you could do is for printing purpose create another report say "<your report name> print version" and instead of using pages use sections in it this way you will get all the data in one page divided by sections just the way you want it to be.
Regards,
Abeer @ Sakonent
Edited by: sakonent.com on Sep 30, 2010 12:06 PM -
Printing multiple pages on a single sheet with SAPScript
Hello,
I am using SAPScript on ECC 6.0. We currently have a form which occupies the top half of an A4 sheet of paper. The form is printed on pre-printed stationary provided by the government. The government has now issued a new version of the pre-printed stationary which allows a single page to contain the form twice. The form is a with-holding tax receipt that we issue to a vendor.
We now wish to use this stationary to print 2 different instances of the form to a single sheet. The different instances will be for different vendors and have different contents. The stationary is provided perforated so we can split them apart after printing.
Does anyone know how to make SAPScript print 2 instances of a form to a single sheet of paper using a laser printer?
Thanks in advance,
BenHi Ben,
Use this control command in the sap script main window and split the main window into two parts. This will solve your problem. If you require further info please let me know.
/: NEW-WINDOW
Use of this command is as described below.
Each page can consist of up to 99 main windows. Each main window is assigned a consecutive identifying number (0..98), and the windows are filled in this order. This feature enables SAPscript to print labels and to output multi-column text. When one main window fills up, the next main window on that page is taken, if there is a next one. A page break is inserted after the last main window.
You can use the NEW-WINDOW command to call the next main window explicitly, even if the current main window is not yet full.
OR****************************************
You can call this script control command through your printprogram after filling your first instance of main window using function module CONTROL_FORM.
reward if helpful.
Thanks & Regards,
Kalyan.
Edited by: Kalyan on Jan 4, 2008 9:50 AM -
Problem report only print out when i click back button
hi all..i having problem with my report print program. the problem is my report did not immediately print out when i click print button. the program require me to click back button before print out execute. please help me to solve this problem. Thank you.
Edited by: padile on Jan 7, 2010 3:51 AMHi,
In your program, mention the following:
DATA: gs_out_opt TYPE ssfcompop.
gs_out_opt-tdimmed = 'X' "Print immediately
CALL FUNCTION lv_fname "Smartform FM
EXPORTING
output_options = gs_out_opt
Regards,
Dawood. -
Opening a HTML page on clicking of button .
i created a button under menuItem help , i want to open a HTML page in other window (that is save inside my project folder ) when i click that button.
for this i created jeditorpane and passing the URL in to its constructor but i m getting exception when i m using URL like "D:/x/y.html" exception is protocol not find and in the case of "http://localhost/d:/x/y.html" exception is java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method
my code is
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
import java.awt.Color;
import java.awt.Container;
import java.io.IOException;
public class HelpDialog {
* height of frame in pixels
private static final int height = 1000;
* width of frame in pixels
private static final int width = 1000;
private static final String TITLE_STRING = "Help";
* URL of page we want to display
private static final String URL = "http://localhost/D:/SVGcode/javaApplet/src/com/Documentation.html";
// --------------------------- main() method ---------
public HelpDialog()
SwingUtilities.invokeLater( new Runnable()
public void run()
System.out.println( "Starting" );
final JFrame jframe =
new JFrame( TITLE_STRING );
Container contentPane = jframe.getContentPane();
jframe.setSize( width, height );
contentPane.setBackground( Color.WHITE );
contentPane.setForeground( Color.BLUE );
jframe.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE);
try
System.out.println( "acquiring URL" );
JEditorPane jep = new JEditorPane(URL);
System.out.println( "URL acquired" );
JScrollPane jsp =
new JScrollPane( jep,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
contentPane.add( jsp );
catch ( IOException e )
System.err.println( "can't find URL" );
e.printStackTrace();
contentPane.add( new JLabel( "can't find URL" ) );
jframe.validate();
jframe.setVisible( true );
plz help meHi Sandy,
Instead of giving url in the constructor. Paste the code below the JEditorPane. Remove the url from the JEditorPane constructor.
try{
/** Files from system */
java.net.URL helpURL = new URL ("file:///" + "C:\\thread.jspa.htm");
/** Files from inter net */
helpURL = new URL ("http://forums.sun.com/thread.jspa?threadID=5421146&tstart=0");
if(helpURL!=null)
jHelp.setPage(helpURL);
else
System.out.println("Couldnt find file");
}catch(MalformedURLException exp){
System.out.println("Exception in page loading---"+exp);
}catch(IOException ioexp){
System.out.println("Exception in page loading"+ioexp);
} -
Redirect to another page by clicking on button
Hi All,
I want open another page by clicking button i am trying below code it's not getting another page in oaf (10.1.3).
pageContext.forwardImmediately("OA.jsp?page=/eamxx/oracle/apps/eam/oagroup/webui/NavigatePG"
,null
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null
,null
,false
,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
Please give any solution.
Regards,
Mohan ReddyI got solution by using below code open another page in co class process form request need to write below code.
if(pageContext.getParameter("Next")!= null){
am.getTransaction().commit();
pageContext.setForwardURL(
"OA.jsp?page=/eamxx/oracle/apps/eam/oagroup/webui/NavigatedtPG&formval=val",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
Regards,
Mohan Reddy -
File-Save window(saving the html page by clicking a button)
Hi,
when I click a button, a window should open which is same as the one which appears when we click File-save.
This should happen to save the data that is displayed on the internetExplorer, when the user clicks the submit button on his page.(ie,Saving the html page in his desired location).
Thanks in advance.Refer FileDownload and FileUpload tutorial.
If the idea is just to save the html page, I am not sure if it is possible.
If the idea is to save the data in the html page then you can save it as xml format or csv format. Refer to the following tutorials:
a) FileUpload and FileDownload
b) Web Dynpro Binary cache
Regards,
Subramanian V. -
Changing region position on submitting the page by clicking a button.
Hi,
I have 3 regions in my APEX page.
1. Region having 20 LOV's with the width between them as 300. The display point is "Page Template Body (1)"
2. Region having 3 buttons.(Go, CLEAR,CALCULATE) The display point is "Page Template Body (2)" Template is "Region without title" and column = 2 and align = "center" in HTML table cell attributes
3. Region having a report with 25 display columns.
Now the problem is,
a) When I click "GO" button , 25 column report displays and it goes beyond the page layout. Hence button also shifts to right(means center position of the page when it is extended by 25 column report). User cannot see the button.
This button shpould retain its place. How to do this?
b) When I click "GO" button , the gap between the LOV's increases and LOV's also shifts to the right side.
These LOV should be in its place. and should not move on click of button when page submitted.
How can i achieve this. ??
Any suggestios would be welcome.
Please help me.
Thanks
Alaka
Edited by: Alaka on Jan 5, 2009 6:06 AMHi,
If I understand well your problem... You don't say what theme you are using, but usually regions have width=100%, meaning that they should use the whole width of the page (not just the visible part on the screen). Because of this, when the region containing the report extends to the right, it forces all other regions on the page to resize themselves accordingly, that is why your design is getting messed up.
One way to fix it is to tweak the region templates (I would suggest making a copy instead of changing the existing templates). Simply remove the width=100% setting, or hardcode it to a fixed width (for instance, width=300px).
It is a bit complicated to explain here exactly how to do this, but I hope this gives you an idea...
Regards,
Luis -
Including a jsp on the same page by clicking a button
Hi,
I have a jsp page where there are many controls and some buttons. If I click a buton called "Edit" I need to include a jsp page below the existing controls.
Can someone please tell me how to do that?
<tr>
<td>
<a><img name="View" src="view.gif" border="0"/></a>
<a><img name="Edit" src="edit.gif" border="0"/></a>
</td>
</tr>
this is thecode which I have for buttons in my page
ThanksUsing javascript, you could wrap the included page within a DIV tag or SPAN tag that is initially not visible. Then when the user clicks the button you would make the hidden DIV or SPAN visible.
The visibility attribute can be set to visible (to see it) or hidden (to not see it). Here's a page that might shed some light:
http://www.csctce.com/demos/dom_tutorial/
HTH
Maybe you are looking for
-
EP Upgrade - SP14 - Best Practice for Modification File Comparison
SDN Experts - We are upgrading our EP from SP14 - SP16. SAP offers a file "diff" tool that is only useful for Java application files to assist in re-applying our mods on top of the new code stack. We are looking for best practices in Portal upgrade
-
Hello Mac Friends! Need some help here! After installing 3 updates from the "software update" app today (June, 11th) my macbook doesn' t initialize anymore. Is there someone who can help me fix this issue? Why this is happening? How can i fix it? Wai
-
I have created an application using JHeadstart 10.1.3.0.97. The application is wizard based using 5 VO's. The application is to create a new record only not update. If i navigate through the application (23pages approx) and save. There is no problem.
-
Hello, We have a mobile learning lab cart that had an airport extreme fail previously (the ethernet port stopped working). I configured the new Airport extreme to have the same exact settings as the old one, and placed it on the cart. After the recon
-
How tod I talk to someone from customer service?????
the pdf to word conversion is not working properly. Do you have customer support?