Use Report Layout Service

Hi All:
I want to change the default report layout for a delivery note. How can i do it?
I use report layout service but i don´t know how to set my new report layout by default. Can you help me?
thanks
Ricardo

ok thanks
This solved my problem.
But now i have a new question is possible print one document line many times. For example i have a delivery with 1 line and i have a numeric user field(value = 2) and i want to print the line 2 times (user´s field value). Is it possible?
How can i do it??

Similar Messages

  • Report Layout Service in 2005

    Hi
    I'm trying to use the report layout service to delete a layout, but it is always giving a error. I'm most probably doing something silly,here is the code. Please let me know if you see a problem
    Try
    Dim oReportLayout As SAPbobsCOM.ReportLayout
    Dim oReportParam As SAPbobsCOM.ReportLayoutParams
    'get report params
    oReportParam = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutParams)
    oReportParam.LayoutCode = "QUT20006"
    'get the default layout of the specific document
    oReportLayout = oReportLayoutService.GetReportLayout(oReportParam)
    oReportLayout.Author = "manager"
    oReportLayout.Name = "Sales Quotation_Test"
    oReportLayoutService.DeleteReportLayout(oReportLayout)
    sErrMsg = oCompany.GetLastErrorDescription()
    If sErrMsg = Nothing Then
    MsgBox("Completed succesffully")
    Else
    MsgBox("Error:" & sErrMsg)
    End If
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    Thanks in advance

    Hi Marco Antonio Blanco Freja 
    Thank you for answering my thread. Really appreciate it. I did declare them, here is a insert again, ive moved it to a place where you can see it.
    'Global Variable
    Public oCompanyService As SAPbobsCOM.CompanyService
    Dim oReportLayoutService As SAPbobsCOM.ReportLayoutsService
    'in procedure
    try
    Dim oReportLayout As SAPbobsCOM.ReportLayout
    Dim oReportParam As SAPbobsCOM.ReportLayoutParams
    oCompanyService = oCompany.GetCompanyService
    'get report service
    oReportLayoutService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService)
                'get report params
    oReportParam = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutParams)
    oReportParam.LayoutCode = "QUT20006"
    'get the default layout of the specific document
    oReportLayout = oReportLayoutService.GetReportLayout(oReportParam)
    oReportLayout.Author = "manager"
    oReportLayout.Name = "Sales Quotation_Test"
    oReportLayoutService.DeleteReportLayout(oReportLayout)
    sErrMsg = oCompany.GetLastErrorDescription()
    If sErrMsg = Nothing Then
    MsgBox("Completed succesffully")
    Else
    MsgBox("Error:" & sErrMsg)
    End If
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    It gives an error by oReportLayoutService.DeleteReportLayout(oReportLayout) and the error is "Specified cast is not valid". We usually get this error when something was not done correctly...i can't spot the problem. Can You???
    Thanks again

  • Report & Layout Manager

    Hi,
    I have created User defined form. Now i have to display report when click on Preview button (Same as Standard document).
    Can we use report & layout manager to display report.
    Regards,
    Pravin

    Hello
    possible with development, and it is pending from the B1 version.
    Easy solutions are:
    - 8.81 you can use Crystal Reports and PLD
    - 2007 you can use PLD only or CR integration addon
    in Crystal:
    - You can create your layout and you can import into the system as report (not layout) into a specific folder
    - When you press the print or print preview button (eg menu action is indicated, menu id "520", "519"), then you can find the crystal report in the OCMN table with the following query
    select MenuUID from OCMN where Name = N'YOUR_REPORT_NAME'
    - next step is call the report with ActivateMenuItem and fill the parameters.
    Complete code for crystal
                Dim oRs As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(BoObjectTypes.BoRecordset)
                Dim sQuery As String
                Dim sMenuID As String
                sQuery = "select MenuUID from OCMN where Name = N'YOUR_REPORT_NAME"
                oRs.DoQuery(sQuery)
                If oRs.Fields.Count > 0 Then
                    sMenuID = oRs.Fields.Item("MenuUID").Value.ToString
                    m_SBO_Application.ActivateMenuItem(sMenuID)
                    Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
                    oForm.Items.Item("1000003").Specific.String = docentry
                    m_CrystalCriteriaFormID = oForm.UniqueID
                    oForm.Items.Item("1").Click(BoCellClickType.ct_Regular)
                Else : m_SBO_Application.MessageBox("NO PRINTING LAYOUT EXISTS!")
                End If
    In PLD, the logic is the same, but you must activate the User Queries print layout, and locate the report in the matrix.
    Regards
    János

  • Report Layout converts & into %26amp;

    When using APEX 4.2.1 with the Instance Setting: Report Printing: Print Server = Oracle APEX Listener.  I use an after processing branch call to PRINT_REPORT=REPORT_PDF.  The Report Query for REPORT_PDF has Source Query: "select 'A & B' DESCRIPTION from dual" which uses Report Layout "LAYOUT_7".
    When I choose Output Format="XML" for the Report Query, the description field is returned as 'A & B' which is rendered as 'A & B' in browser.
    When I choose Output Format="PDF" for the Report Query, the description field is returned as 'A %26amp; B' which is rendered as 'A %26amp; B' in Adobe Reader.
    How do I get the Adobe Reader to output 'A & B'?
    Thank you,
    Ryan

    Hi,
    As it is passed as a special character, it converts & into %26
    If it has space then it would be converted to %20
    So make sure, you are not using constants like that. It renders properly in web browser as the browser converts or parses %26 to & symbol when rendering.

  • Report Layout Upload - Error 404

    OK, this is a new one...
    I've been editing this layout for a report using Report Layouts, and been able to upload and delete the same file about a dozen times.
    Now, I create a lauout, and select the file to upload, but on create this is what I get -
    Not Found
    The requested URL /pls/apex/wwv_flow.accept was not found on this server.
    Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at serverxxx Port 7777I've tried to save the file in different names, and in different locations, but it won't upload. I tried another layout I have, another RTF, but it failed as well. A .png will upload, but no RTF's will.
    I don't think its my rtf file, because it works using the BI publisher preview...
    Not about the problem above. I think it may be image related or server related. The same layout uploads to a different server, no troubles.
    Message was edited by:
    glasnt

    Found the problem
    My apexfiles tablespace was full. All 100MB of it, bar a few KB.
    Let this be a lesson to all - if you 404 on an upload, check you're not full!
    hides away in shame

  • Using 2 web services data sources in the same report

    I've been trying unsuccesffuly to use 2 web services data sources in a report. The main report accesses the first web service to get job summary information. 3 fields are are passed as parameters to a sub-report and used as parameters for the sub-report selection. Each report works fine independently, but when I link them together the subreport alway fails to retrieve data.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Crystal Report using a Web Service as a data source?

    I am trying to figure out how to use a Web Service as a data source in Crystal Reports. When I use the report wizard, I do not see an option to select Web Service as a new connection. We are currently using Crystal Reports 2008 v12.1.0.892. Could it be that my version does not support this? Is there an update that contains this feature? Please help.

    Thanks for your response. Unfortunately I do not see a radio button for Web Services. I've read that it should be there too. Could it be a missing plug-in or patch?
    Here are screen shots of what I see when trying to connect to an XML. Any thoughts?
    [http://s26.photobucket.com/albums/c120/hpolit/?action=view&current=wizard1.jpg]
    [http://s26.photobucket.com/albums/c120/hpolit/?action=view&current=wizard2.jpg]

  • Using a Web Service as a data provider for a Crystal Report

    <p>I&#39;m trying to write a Crystal Reports XI report that uses a Web Service as the data provider.  I have a Web Service written in ColdFusion that looks like this.<br /><br /><cfcomponent displayName="FindEmployee" ><br />   <cffunction name="FindEmployeeSort" access="remote"          <br />               returnType="xml" output="false"><br />      <cfdump var=form><br />      <cfset myXML = ""><br />       <!--- FindEmployeeSort body ---><br />       <cfquery name="EmployeeQuery" datasource="Production"><br />           Select * from employee<br />          <cfif isdefined(&#39;form.lastname&#39;)><br />             WHERE lastname LIKE &#39;%#form.lastname#%&#39; <br />          </cfif><br />           Order by lastname asc <br />        </cfquery><br />     <cfreturn EmployeeQuery>  <br />   </cffunction><br /></cfcomponent><br /><br />I can get the web service to work from a ColdFusion page (either locally or on a remote server).</p><p>When I try to create the CR data source, I get the following error:</p><p>Crystal Reports<br />! Logon Failed.<br />Details: Cannot find correspondign table information in the XML file</p><p>The steps I took were:<br />* Choose XML from the "Avalable Data Sources"<br />* Choose "Use Web Service Data Source"<br />* Choose "Use HTTP(S) WSDL" with a url of <a href="http://host/directory/FindEmployee.cfc?wsdl">http://host/directory/FindEmployee.cfc?wsdl</a><br />* Leave the "HTTP(S) Web Service User ID:" and "HTTP(S) Web Service Password:" parameters blank<br />* Accept the defaults for Services, Ports, and Methods.  They are respectively FindEmployee, FindEmployee.cfc and FindEmployeeSort.<br />* Then get the error</p><p>The most likely candidate to me is the user id and password, but I have no idea what to use.  I didn&#39;t have to set any login information up in the ColdFusion pages that I used to test the Web Service.</p><p>Any ideas where to go from here?</p><p>Thanks,</p><p>Brian</p>

    Please re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Save SSRS Report as pdf using Reporting Services

    I've been trying to convert a SSRS Report to PDF and save to
    my local drive using the Reporting Web Services. Though I'm able to
    generate the corresponding pdf file but the contents of the file are
    missing. I've checked that the report I'm trying to convert is not an
    empty one. Only the header section is present there within the generated
    pdf files. Below is the code I'm using:
    protected void GeneratePDFFromReport(object sender, EventArgs e)
    RS2005.ReportingService2005 rs;
    RE2005.ReportExecutionService rsExec;
    // Create a new proxy to the web service
    rs = new RS2005.ReportingService2005();
    rsExec = new RE2005.ReportExecutionService();
    // Authenticate to the Web service using Windows credentials
    rs.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
    rsExec.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
    //rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = "http://servername/reportserver/reportservice2005.asmx";
    rsExec.Url = "http://servername/reportserver/reportexecution2005.asmx";
    string historyID = null;
    string deviceInfo = null;
    string format = "PDF";
    Byte[] results;
    string encoding = String.Empty;
    string mimeType = "application/pdf";
    string extension = String.Empty;
    RE2005.Warning[] warnings = null;
    string[] streamIDs = null;
    // Path of the Report - XLS, PDF etc.
    string fileName = @"C:\Report\MemberReport.pdf";
    // Name of the report - Please note this is not the RDL file.
    string _reportName = @"/ReportFolder/ReportName";
    string _historyID = null;
    bool _forRendering = false;
    RS2005.ParameterValue[] _values = null;
    RS2005.DataSourceCredentials[] _credentials = null;
    RS2005.ReportParameter[] _parameters = null;
    try
    _parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials);
    RE2005.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
    results = rsExec.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
    Guid siteID = SPContext.Current.Site.ID;
    GuidwebID = SPContext.Current.Site.OpenWeb().ID;
    stringbudgetName = string.Empty;
    try
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSitesite = newSPSite(siteID))
    using(SPWebweb = site.OpenWeb(webID))
    web.AllowUnsafeUpdates = true;
    web.Files.Add(web.Url + "/Shared Documents/SharepointMemberExpenseReport_" + DateTime.Now.ToShortDateString().Replace('/','-') + ".pdf", results, true);
    web.AllowUnsafeUpdates = false;
    catch{ }
    try
    FileStream stream = File.Create(fileName, results.Length);
    stream.Write(results, 0, results.Length);
    stream.Close();
    catch { }
    results = null;
    catch (Exception ex)
    throw ex;
    Any help would highly be appreciated. Thanks.

    use this code, save the byte array into format of pdf
    public static byte[] ExportReportInPDF(ReportViewer ReportViewerCompetency)
    Warning[] warnings;
    string[] streamids;
    string mimeType;
    string encoding;
    string filenameExtension;
    byte[] bytes;
    if (ReportViewerCompetency.ProcessingMode == ProcessingMode.Local)
    bytes = ReportViewerCompetency.LocalReport.Render("PDF", null, out mimeType,
    out encoding, out filenameExtension, out streamids, out warnings);
    else
    bytes = ReportViewerCompetency.ServerReport.Render("PDF", null, out mimeType,
    out encoding, out filenameExtension, out streamids, out warnings);
    return bytes;
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • How to create a crystal report using secured web service as a datasource?

    Hi All Expert,
    I having some challenges on how to create a report using secured web service as a datasource in crystal report designer (CR11 R3).
    Secured Web Service including the certificate trusting, token authentication, header and/or body encryption. All web services running on https protocal.
    Could you please suggest me on the solution?
    Thank you and Best Regards,
    Cherr

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • How to set it up to use BI Publisher Report layout in APEX

    Hi all,
    I downloaded the xml file from APEX to create a BI Publisher report layout and uploaded it to APEX report layout in share component. When I click the test report button, nothing showed. Would you show me what else I need to do to make it work?
    Any suggestions are appreciated.
    Thanks much@

    You need to use the desktop layout editor that works under Word to develop report layouts..
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Use XML stored in the DB with an Named Columns (XSL-FO) report layout

    Hi Folks.
    Here's my 'challenge' du jour.
    I have an XML document saved in the database.
    It was uploaded through APEX (form with report) into a table where the column holding the XML file is defined as "SYS"."XMLTYPE"
    I have an XSD file which I am using as the report template definition.
    my report query is
    SELECT xml_data
    FROM   xml_documents
    WHERE  filename = 'test.xml'When I run the report in APEX stating "Use Generic Report Layout" I get a PDF stating [unsupported data type]
    Does anyone have any pointers/suggestions?
    I have downloaded Apache FOP 0.95 and have succesfully converted the XML into a PDF using the XSL file. Consequently I know that the XML and XSL documents I am using are 'well formed'.
    Many thanks
    Kind regards
    Simon Gadd
    Edited by: Simon Gadd on Mar 23, 2009 6:29 PM

    Just as a follow up, I have come to the logical conclusion that the APEX report query is expecting you to pull back a regular data set from a SQL query.
    This can then be parsed with an XSL format report layout. It's not expecting you to pull complete XML out of the database.
    Am I right?
    Simon

  • How To Use Reporting Services On SQL Server 2000 ?

    Hi all .
    Today , I has a issue .
    Normal , if the customer use SQl Server 2005 , it is no proplem , so if use SQL Server 2000 ,  Now , I want to use Reporting services on SQL Server 2000 , but , I am searching  on Internet , so I know , if I want to use SQL 2000 reporting server , I must have license of SQL server 2000 .
    is Every body  idea for this issue  ? .
    Please help me .
    Thanks alot .

    Ok ,anyway thanks alot ,.

  • Report Query using a Named Column Report Layout fails to produce PDF

    I am testing FOP and the Shared Component Report Queries query with a Named Column Report Layout. The xsl file was built using Stylus Studio and worked fine with the saved XML data file in Stylus Studio.
    500 Internal Server Error
    500 Internal Server Error
    Servlet error: An exception occurred.
    The current application deployment descriptors do not allow for including it in this response.
    Please consult the application log for details.
    I assume this is a message from FOP. What do I do now?
    tia,
    Sam

    Sam,
    I would suggest to take APEX out of the picture first and see if you can get this to work directly with your FOP solution, i.e. generate the XML data and take your XSL file and then post it directly to the FOP JSP (or whichever rendering engine you use). If this works, the problem might be somewhere in your APEX configuration. If it doesn't work, then the problem is likely in your XSL or XML structure. Here's how you can setup a static HTML page to post your XML and XSL to FOP:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    Regards,
    Marc

  • Use report history reporting services btn option

    hello,
    i'm trying to figure out what the use report history option on the general view of the reporting services button option provides.
    the definition in the help file is "To enable use of the report's history, select this option". i have no idea what this means, so i'm hoping that someone can tell me what this option provides.
    i don't have all of the requirements to test using the reporting services button, so i can't test it's functionality.
    any help would be greatly appreciated
    thank you
    tracy

    Hi KittyCat101,
    As per my understanding, you used case when statement in the query, you do not need to display permitsubtype in the report, but when you tried to delete permitsubtype from the query, it could not run correctly. In order to improve the efficiency of troubleshooting,
    I need to ask several questions:
    “I tried deleting the permitsubtype query and it would not run correctly.” As we can see, it has no effect to delete permitsubtype from the query you provided, could you please provide complete sql query for the report?
    Could you please provide detailed information about the report? I would be appreciated it if you could provide sample data and screenshot of the report.
    Please provide some more detailed information of your requirements.
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

Maybe you are looking for