How to print 2nd Page/How to call 2nd page
Hi
Actually in my report there was only one page and I want to add 2nd page which I have added. Now system is not showing 2nd page in output. I put a break point in 2nd page and found that system is not going inside 2nd page. I mean not triggering 2nd page. Can any one help me on this.
Thanx in advance
Rajesh Vasudeva
Hi Rajesh
right click create-> flowlogic->command
here chek goto new page and specify your second page name.
Try this too.
Instead of creating new page with another main window create a new page with secondary window and in first page main window -> general attributes set next page : first page itself and create a command as i showed the path and in that set second page.
This will surely solve your problem
Regards
Swetha.
Similar Messages
-
Smartforms - how to call 2nd secondary window page
Hi
How to call 2nd secondary window page from Ist Main window. The scenario is i have one main page. I have already called 2nd page thru command line and now want to call another page (i mean third page) from same main window. How do I do?
Thanx and regards,
Rajesh VasudevaHi Rajesh,
Go for the below link>>>>>
[http://help.sap.com/search/highlightContent.jsp]
thnks. -
How to print last page in sap script in ladscape format?
Hi all,
can any 1 tell me How to print last page in sap script in ladscape format?
Thanks In advance.
PravinHi Pravin Sherkar,
we can do this in SAP Scripts.
we need to create two pages, one of landscape and another of potrait.
now after filling the data at last we need to call the page which is of format landscape using START_FORM function module.
You can use condition &PAGE& = &FORMPAGES&.
Please check this link
Printing Portrait/Landscape in sapscript
Re: Landscape and potrait in same layout?
http://www.sap-img.com/ts013.htm
Best regards,
raam -
How to print last page in smartforms
Hi,
In my smartform i have 3 pages (FIRST, NEXT & LAST). FIRST contains some header detail and items. NEXT contains rest of items and this page would be repeatable if more item comes. now after NEXT i want to print LAST page. How to achieve this. PLease let me know. I looked into forum but haven't get exact answer so far.
RgdsHello,
According to your scenario you are having 4 orders and each order has to print seperately with the last page .right?
The best soln would be,
1) create another internal table same as the one you have and delete adjacent duplicates using order, so you will have 2 internal table one with 4 orders (it-1)and other with all the items(it-2).
2) In the driver program ,
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
control-no_open = 'X'.
control-no_close = 'X'.
output-tdnewid = 'X'.
PERFORM ssf_open.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
ARCHIVE_PARAMETERS =
user_settings = ' '
MAIL_SENDER =
MAIL_RECIPIENT =
MAIL_APPL_OBJ =
output_options = output
control_parameters = control
IMPORTING
JOB_OUTPUT_OPTIONS =
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.
LOOP AT it-1.
CALL FUNCTION l_fm_name
endloop.
CALL FUNCTION 'SSF_CLOSE'.
2) In the smartform
FIRST -> next page -> NEXT
Beneath the main window -> Table, put Command - Goto new page as LAST.
NEXT -> next page -> NEXT
LAST -> Next page -> Blank
I hope this will work as I have done a similiar dev.
Regards,
Radhakrishnan -
JS: How to make a script to print one page at a time and set print job name?
What I want is to print one page at a time to the printer.
Document.print(false, app.printerPresets.item(0)) almost get me there. But how do I get it to print page by page? There seems to be no way to set which page to print to printerPreset.
Also, is it possible to change print job name from the default of using document name?>Is there any solution to this other than saving the document to a different name before each page print?
Here is an altered and abriged version of the script that I use. I use print preset called "PS to PDF" in it, so you should change it to your own.
if(app.documents.length == 0){
alert("Please open a document and try again.");
exit();
var myFolder = Folder ("~/Desktop");
var myDoc = app.activeDocument;
var myNoExtention = getFileNameOnly (myDoc.name);
var myPrintPrefs = myDoc.printPreferences;
if (app.printerPresets.item("PS to PDF") == null) {
alert("Preset \"PS to PDF\" has not been installed");
exit();
else {
myPrintPrefs.activePrinterPreset = app.printerPresets.item("PS to PDF");
myDoc.sections.everyItem().sectionPrefix = "";
myDoc.sections.everyItem().includeSectionPrefix = false;
var stop = myDoc.pages.length;
var w = new Window ( 'window', 'Printing PS-files' );
var pb = w.add ('progressbar', [12, 12, 300, 24], 0, stop);
var txt = w.add('statictext');
txt.bounds = [0, 0, 200, 20];
txt.alignment = "left";
w.show()
for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++){
curPage = myCounter + 1;
pb.value = curPage;
var myText = String("Page " + curPage + " of " + myDoc.pages.length);
txt.text = myText;
var myPageName = myDoc.pages.item(myCounter).name;
var cornumber = pagenum(myPageName);
var myFilePath = myFolder + "/" + myNoExtention + "_" + cornumber + ".ps";
var myFile = new File(myFilePath);
myPrintPrefs.pageRange = myPageName;
myPrintPrefs.printFile = myFile;
myDoc.print(false);
w.hide();
alert("Done!");
function pagenum(myNumber){
if (myNumber >= 1 && myNumber <= 9)
x = "0" + "0" + myNumber;
else if (myNumber >= 10 && myNumber <= 99)
x = "0" + myNumber;
else if (myNumber >= 100 && myNumber <= 999)
x = myNumber;
return x
function getFileNameOnly (myFileName) {
var myString = "";
var myResult = myFileName.lastIndexOf(".");
if (myResult == -1) {
myString = myFileName;
else {
myString = myFileName.substr(0, myResult);
return myString;
Kasyan -
How to call this procedure in my report to print my procedure output
Hi,
i have a table named letter,it contains 2 columns named as letter_id and letter_content.
select * from letter;
letter_id letter_content
103 Dear MFR
103 This is in regards to the attached DM List
103 Please Credit us after reviewing it.
103 Thanks
103 Regards
103 xxxx
108 Dear customer
108 This is to inform that ur DM List is as follows
108 Credit us according to the Dm after reviewing it.
108 Thanks
108 Regards
108 xxxx
now my requirement is,i need send a parameter as letter_id to a procedure or function in pl/sql in oracle,the output should be as follows:
if we will pass parameter(letter_id) = 103 then it displays as follows:
Dear MFR
This is in regards to the attached DM List.Please Credit us after reviewing it.
Thanks
Regards,
XXXXX.
if we will pass parameter(letter_id) = 108 then it should displays as follows:
Dear customer,
This is to inform that ur DM List is as follows. Credit us according to the Dm after reviewing it.
Thanks
Regards,
XXXXX.
the procedure for my requirement is like below.now my problem is how to call this procedure in my report.so that if i will send a parameter as letter_id then it should get my report stated above.
CREATE OR REPLACE PROCEDURE letter_text ( p_letter_id letter.letter_id%TYPE , p_letter_contents_out OUT SYS_REFCURSOR )
IS
BEGIN
OPEN p_letter_contents_out
FOR
SELECT letter_content
FROM letter
WHERE letter_id = p_letter_id
ORDER BY line_seq;
END letter_text;
which you might call with something like
SQL> var results refcursor
SQL> exec letter_text(103, :results)
PL/SQL procedure successfully completed.
SQL> print :results;
CONTENT
Dear MFR
this is in regards to the attached DM List
Please credit us after reviewing it
thanks
Regards
EXP
6 rows selected.
so, the same out put i need to get it in a report.
ThanksThanks for ur suggestions.
i have 2 select statements.1st query is the main query for the report.so i used it at the time of report created with datablock.
now my 2nd query is
select letter_content
from ( select content_seq,
content || case content_seq
when 2 then
' ' || lead(content) over (partition by letter_id order by content_seq)
end as letter_content
from exp_letter_contents
where letter_id = 103)
where content_seq <> 3;
i had taken 2parameters 1 for the main query and 2nd is for the above query(parameter is letter_id).
now i have to write the above select statement in the report.
so i had taken a field object in the report and then i had written this code in before report trigger.
function letter_contentFormatTrigger return boolean is
begin
select letter_content
from ( select content_seq,
content ||
case content_seq when 2 then
' ' || lead(content) over (partition by letter_id order by content_seq)
end as letter_content
from exp_letter_contents
where letter_id = 103)
where content_seq <> 3;
return (letter_content);
end;
when i tried to compile it.i got an error as follows :
error 103 at line6,column 5
encountered the symbol "CASE" when expecting one of the following:
(- + mod null <an identifier>
<a double-quoted delimited-identifier><a bind variable> avg...etc
so,where can i write this select statement.
i am using oracle reports6i
Message was edited by:
user579585 -
How to call second page in Smartform without calling first page
Hi Gurus,
I have two pages in one smartform. I am using this for PWB purpose. PLease tell me how I first or second page will be triggered depending on the conditional flag that has been defined in global variables.
For first page it is working...but I don't know how to call the second page bypassing the first page on condition basis.
Thanks in Advance
GautamHi,
The smartform will always start with the first page in the structure by default. However when you call the smartform you can specify which page to start with in the structure CONTROL_PARAMETERS field STARTPAGE, this does mean you have to change you print program to include the logic, not the form.
Regards,
Nick -
How can I print some pages from multipage report
Hello,
I have created a multipage report in word. I would like the user to be able to print the pages selected (as in word printing: pages: 1, 2-3);
I am using Office 2007 pro, the LabVIEW Report Gen Toolkit, LabVIEW 2009, and Windows XP.
I used the suggestion in thread:
http://forums.ni.com/t5/LabVIEW/How-can-you-print-a-single-page-of-a-multipage-report/m-p/155233 , modifying the print VI that comes shipped with LabVIEW: NI_ReportGenerationToolkit.lvlib:Word_Print.VI.
first of all I put two integer constants on "From" and "To" in the Invoke node (PrintOut), but Labview return an error:
Error 1015 occurred at NI_ReportGenerationToolkit.lvlib:Word_Print.vi -> NI_Word.lvclassrint Report.vi -> print2.vi
Then I searched for PrintOut Method in word 2007 Reference guide, and I saw that for using From and To the Range field must have the string wdPrintFromTo;
I insert wdPrintFromTo string in RANGE Field and tryed.... same error......
After that I change approach; removed all constants and used the field Pages; I put a string "1-2" connected to this field and now the printer respond, but all pages was printed!
What's wrong?
many thanks
Attachments:
print2.vi 18 KB
parte comune.doc 43 KBThanks, Alex!
ok, I try first approach in print4.vi, but Labview return an error (view jpg); if I cut From, To controls, the VI print all pages. The same things happen also if I trasform I32 in Variant.
I don't try second approach, because at this time I have only one report
I try also with VB macro: this is better (print3.vi) but.....if I use:
Sub Print_Pages_From_To()
ActiveDocument.ActiveWindow.PrintOut Range:=wdPrintFromTo, From:="2", To:="3"
End Sub
is ok; print the pages selected; if I use:
Sub PrintPages()
ActiveDocument.ActiveWindow.PrintOut Pages:="2-3"
End Sub
printer print all pages.
what do you think?
regards,
Italo
Attachments:
print Problem.jpg 39 KB
print4.vi 19 KB
print3.vi 19 KB -
I have an ipad2 and an epson nx430 printer. I tried to print my airline itinerary and it printer 4 pages ,most ofwhich were ads. How can i focus just on the information that i need?
Does the website you're using offer a "printer freindly" button or perhaps the faciltiy to email the intenerary to yourself?
Matt -
How to print blank page in script
Hi all,
how to print blank page in scriptHi,
Try the command /: NEW-PAGE. Let me know if it is working.
Ray -
How to call a servlet in new window without toolbar from OA page
How to call a servlet in new window without toolbar from a OA page?Please provide sample code
I have tried with the way suggested in Mukul's blog using javascript in Destination URI property.
I tried to open a OA Page and from which forwarded it to a servlet..
It is showing the error:
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1969)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at oa_html._OA._jspService(_OA.java:86)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
at oa_html._OA._jspService(_OA.java:96)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at oa_html._OA._jspService(_OA.java:86)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
at oa_html._OA._jspService(_OA.java:96)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
at oa_html._OA._jspService(_OA.java:86)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
at oa_html._OA._jspService(_OA.java:96)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534) -
JasperReports - how to save as PDF from Print Preview page?
Hi all!
How can I save reports created with JasperReperts (with iReport tool) as PDF?
On print preview, when I select it is as PDF, and click on "save", nothing is saved. Also, I get NoClassDefFoundError despite I included all nessesry classes (did I?). Here are list of included classes
jasperreports-1.2.7.jar;
jasperreports-1.2.7-javaflow.jar;
commons-beanutils-1.5.jar;
commons-collections-2.1.jar;
commons-logging-1.0.2.jar;
commons-digester-1.7.jar;Here is my code:
void printWithPreview() {
try {
JasperPrint print = JasperFillManager.fillReport(report, reportParam, conn);
JasperViewer.viewReport(print, false);
//byte[] pdfasbytes = JasperExportManager.exportReportToPdf(print); // can I use it somehow?
JasperExportManager.exportReportToPdf(print);
} catch (JRException e) {
e.printStackTrace();
}Can you help me with this?
Also, I need to know, how to limit options "save as" only to PFD (on same Print Preview page)?
Thank you in advance!Right!
I was missing iText.jar.
So, you need only this code to get report preview and feature to export to pdf, html and other formats:
void printWithPreview() {
try {
JasperPrint print = JasperFillManager.fillReport(report, reportParam, conn);
JasperViewer.viewReport(print, false);
JasperExportManager.exportReportToPdf(print);
} catch (JRException e) {
e.printStackTrace();
}You do not need to save it specificly to c: or other "hard coded" directory.
Thanx 1000 times!!! -
How can i print all pages instead of only the first page using firefox
How can i set firefox to print off my mac to my lexmark printer all pages i want. It is only printing the first page as of about 4 days ago
== This happened ==
Every time Firefox opened
== about 4 days ago. it works ok on safari!Then duplicate that button to pages 3-23.
To do that effectively go to Form Edit mode, right-click the button and select Duplicate Across Pages. -
How can I print a pages document in book format ..order?
How can I print a pages document in book format ..order?
This is usually a function of the driver you're using. Have you looked in the various PDEs for black and white or grayscale? What kind of printer are you using?
-
How can I print half pages to fit in my circa desk calendar
How can I print half pages from iCal to fit in my Circa desk calendar?
That depends on the program, but if it's Preview, go to Page Setup... under the File menu. Select the appropriate paper size there. Then go to File > Print... and do a Preview. If the content does not fit on the page, some printer drivers will have a Scale to Fit setting. If there is none, go back to Page Setup... and manually adjust the Scale until it fits nicely when you do a Preview.
-
Can I print web pages from Firefox 3.6.12 using adobe pro 9 (not using PDF Download) and if so how.
{Ctrl + P} - do you have a PDF Printer listed in the Printer - Name drop-down?
Maybe you are looking for
-
Intrastat/Extrastat Implementation
How do we configure Intrastat/Extrastat reporting in S.D, what are the steps to implement them? - Sai
-
I am unable to open Acrobat X in Windows 7
I am unable to open Acrobat X in Windows 7. The shortcut appears on the desktop but when I click it nothing happens. Same from the program list. Just re-installed from cd but still nothing.
-
can I store photos in iclaoud and how?
-
In Safari, composing an E-mail message, when I click on "I" for italics, use italics for a word, then unclick "I" to return to the regular type face, it reverts to italics after I hit the "return" key to begin a new paragraph. How can I avoid that u
-
MiniSAP WAS 620 installation problem
Dear WAS developers, I got 3 CD's from SAP Press to install WAS620. I'm trying to Install on Window XP Home(SP1). During installation it ask for inserting Kernel Cd first,then Data1 CD, then Data2 CD. Then again it ask for inserting Kernel CD. When I