Unable to use RAS SDK for server-side printing for XI 3.1

Hi all,
I am using RAS SDK for server-side printing.  Here are my codes:
ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
IEnterpriseSession enterpriseSession = sessionMgr.logon("Administrator", "", "cdi5boe", "secEnterprise");
IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
//out.println("Current User is = " + enterpriseSession.getUserInfo().getUserName());
//out.println ("<br>");
IInfoObjects infoObjects = iStore.query("SELECT * FROM CI_INFOOBJECTS WHERE SI_Kind='CrystalReport' AND SI_NAME = 'Sales Print'");
IInfoObject infoObject = (IInfoObject)infoObjects.get(0);    
IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");
ReportClientDocument rcd = new ReportClientDocument();
rcd = reportAppFactory.openDocument(infoObject,0, java.util.Locale.US);
//Create print options to use when printing.
PrintReportOptions printOptions = new PrintReportOptions();
printOptions.setPrinterName("
cdi5boe
HPLaserJ");
printOptions.setJobTitle("Test Printer Job");
printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
printOptions.setPaperSource(PaperSource.auto);
printOptions.setPaperSize(PaperSize.paperLetter);
printOptions.setNumberOfCopies(1);
printOptions.setCollated(false);
PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
printOptions.addPrinterPageRange(printPageRange);
//Print report.
rcd.getPrintOutputController().printReport(printOptions);
When I run the report, I got the following errors:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKPrinterException: com.businessobjects.crystalreports.printer.bean.ReportPrinter---- Error code:-2147215357 Error code name:internal
I consult the Diamond Technical Community and I found the issue related to printer name:
https://boc.sdn.sap.com/node/498
However, I did check the printer name, it is accessible via Windows Explorer.
Anyone knows how to resolve this?
Regards,
Derek

It doesn't appear to be listed as a dependency in the developer docs, but would you try putting the ReportPrinter.jar in your RAS app?
Sincerely,
Ted Ueda

Similar Messages

  • Can i use same Server for server side and client??

    Hi,
    i m developing webservices in java and using two different server for server side and client.
    e.g. i m using one tomcat server on a machine to run webservice and again using one more tomcat server on client side at different machine.
    and hence it need two tomcat server.
    But i want only one server to run webservice and client.
    So please help me out...
    Thanks

    Hi,
    It is always recommended to maintain different servers
    REgards,
    Ravi.

  • Interactive Sort using RAS SDK

    We are creating a report from scratch using RAS SDk. In our report we want to enable interactive (dynamic) sort for some of the columns. We are unable to figure out a method that provides this functionality.
    Thanks.

    I don't think this is possible.  Last time I tried this was when the product released approx 2 years ago and I have not heard of this functionality being added in.

  • How to create cross tab reports using RAS SDK api with Crystal Reports XI

    Hi Everybody,
    Iam generating reports in a web-based application with Crystal Reports XI using Report Application Server(RAS) SDK API. The columns in my report exceed that of an A4 sized page. So, when I export that report to pdf, only those columns that fit to a page are showing up. To solve, this problem, I thought of using cross tab. But, I donot know how to generate cross tab report using RAS SDK API. I have tried to get some code from the internet. But, I did not find any java code for that.Can some one give me some sample code.It is very urgent.
    Thanks in advance.

    Hi,
    The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
    In the duplication wizard I just need to define the axis (using drag and drop).
    if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
    The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
    for example: to find the amount of receipt by months:
    On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
    What you'll get is something like:
    months: jan feb mar apr ......
    buyer_name
    jhon_smith 100 50 30 250 ......
    jhon_doe 80 45 90 453 ........
    and so on.....

  • Problem with skin for server side buttons.

    Hi,
    I have a problem with the skin for server side renderd buttons.
    In my CSS file I have :
    .AFButtonStartIcon:alias
    content:url(/skins/images/btns.JPG);
    .AFButtonEndIcon:alias
    content:url(/skins/images/btne.JPG);
    .AFButtonTopBackgroundIcon:alias
    content:url(/skins/images/btntb.JPG);
    .AFButtonBottomBackgroundIcon:alias
    content:url(/skins/images/btnbb.JPG);
    JPG files in project are in dir "public_html/skins/images".
    In WAR file,the JPG files are in "/skins/images" directory.
    Skin configuration is correct because other settings from CSS
    file are functioning fine after deploying.
    But buttons are standard browser buttons and are not taking the images i have used.
    In document provided by Oracle it says:
    (Note: These icons must be specified using either context-image or
    resource-image icons. Text-based icons are not allowed.)
    I am nt able to understand what this means?

    Perhaps this thread will help.
    JSF Skining Button Images
    The doc should say whether or not the width/height is a requirement. But since it doesn't mention it, try adding a width and height.
    - Jeanne

  • Server-side authentication for web services

    I was hoping to use Azure's server-side authentication for a HTML/JS web app. Some things are a bit unclear. For example, if a new user authenticates via Facebook, I want to create an associated record on the server-side and associate extra data with the
    user, irrespective of the service used to log in. If they log in again, I want the client to be able to get this extra data (eg preferences) from the server. On the back-end, I also want to be able to update particular fields of this record that the user cannot
    change themselves. I know how to go about this in a plain Node.js backend, but not sure how some of these basic things map to using Azure's services.

    Once the user logs in, you will have their information available to your server scripts. So one option is to use a custom API (or a Mobile Services Table) to insert/read/update the user data. You would protect this endpoint so that only logged-in users can
    access it, and then access the
    user object to obtain an ID an associate it in a table row. Lookups could be performed by similarly querying for the ID.
    In terms of some fields being restricted, you could remove these from the update request itself.
    Some pointers that might be helpful:
    http://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-get-started-data/
    http://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-call-custom-api/
    http://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-authorize-users-in-scripts/

  • Can I do CRUD operation on a businessview object using RAS SDK.or BO SDK?

    I want to add a filter to my businessview using BO SDK or RAS SDK. and also want to do some CRUD operations on businessview uisng SDK. is there any way to add a filter to business view using RAS SDK?
    I can get the businessView and set it as a datasource to ReportClient Document. now I want to add a filter to businessView and save the modification.
    please refer the code for better clarity.
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
                   IEnterpriseSession enterpriseSession = sessionMgr.logon(
                             "Administrator", "amam!984", "cura-ws-78:6400",
                             "secEnterprise");
                   IInfoStore iStore = (IInfoStore) enterpriseSession
                             .getService("InfoStore");
                   IInfoObjects infoObjects = iStore
                             .query("Select * From CI_APPOBJECTS where SI_NAME='BusinessViewName'");                    
                   IInfoObject infoObject = (IInfoObject) infoObjects.get(0);
    IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession
                             .getService("RASReportFactory");
                   ReportClientDocument rcd = new ReportClientDocument();
                   rcd= reportAppFactory.newDocument(null);
                   rcd.getDatabaseController().addDataSource(infoObject);
    After this can I add a filter to the businessview here?
    All the reply are highly appreciated and thanks in advance to all for sharing knowledge.
    Regards,
    Sunil Kumar Sahoo

    There's currently no public SDK for CRUD of Business Views.
    Sincerely,
    Ted Ueda

  • Does Weblogic Provides any in built utility for server side browser detection

              Hi
              Does Weblogic Provides any in built utility or package for server side browser
              detection i.e. to know the browser details
              of the client with the first request.
              One such available product is BrowserHawk(http://www.cyscape.com).
              any thing similar to this available?
              Thanks in advance
              Mrutyunjay
              

    Hey Mohammed,
              yes, you could use just wl server to do file uploading. in your html client
              code, you need to specify the type of the data that you are sending as
              follows:
              <form action="UploadTestServlet" enctype="multipart/form-data" method=POST>
              File: <input type=file name=file><br>
              <input type=submit>
              </form>
              This will send your file to be processed by the UploadTestServlet. You need to
              code UploadTestServlet yourself to parse and extract useful data. check out
              www.servlets.com for a utility class that does just that
              Winston
              Mohammed Ali Usmani wrote:
              > Hi to All;
              >
              > I want to know if I can use weblogic (webserver) for file uploading from
              > client browser without using any ftp server.
              > Do I have to use some special code (may be in my servlet/html page) for
              > handling this. I mean that do I have to provide the implementation of RFC
              > 1867 by myself at server side?
              >
              > Or it is just merly a browser support? It doesn't effect the webserver at
              > all?
              >
              > Thanks
              

  • Configure SAP for server-side trust

    Hi all,
    I am installing BusinessObejcts XI integration for SAP Solution. I need configure SAP for server-side trust. I have read BussinessObjects XI Integration for SAP Solution Installation Guide. In chapter 6, It introduce how to configure SAP Server-Side trust. But I don't understand how to configure SAP for server-side trust, specially configure SAP Cryptographic. Would you please to give me more detailed explanation?
    Please advise,
    Duypm

    Hi Duypm,
    the SAP server side configuration is part of the Installation Guide Chapter 6. It starts on Page 94.
    If you unclear about this and what SNC configuration means for the SAP server make sure you talk to the administrator for the SAP system. You need administrative rights for the SAP system and the system will have to be restarted as outlined in the installation guide
    Ingo

  • Since I've updated to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.

    Since I've updated from iOS 5 to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.
    This is working fine for albums but are broken for audio books.
    The back button refers always to the first chapter of the audio book (very annoying if you are in the middle of an audio book) and the nex button goes one level higher back to the selection of the audio book itself.
    In iOS 5.0 it was still possible to navigate throught the audio book chapters using these buttons.
    This still happens in iOS 6.1.
    Is this a known bug?
    Does any solution exist?
    Thx,
    Oliver

    To gdgmacguy your a f****** idiot for one I'm having the same problem as pennymar. And you tell me to quit whinning. You got more problems then the iOS 6 you did not answer my question nor the other 13 or whatever you replied to within a 30 min time frame. You must got nothing better to do then to harass people and to pretend you know something about apple products. Which you don't from what I've read the other advices you should have gave to other people. But you didn't you replied a question back to the people asking a question. So if your not gonna use these community forums the right way don't use them at all.

  • Dear all, I am unable to use face time. It says "waiting for activation". Pls tell what should I do.

    Dear all, I am unable to use face time. It says "waiting for activation". Pls tell what should I do.

    I found a solution that solve the problem, and worked immediately.
    FaceTime worked for me since I purchased my iPhone 4 more than a year ago.
    It stopped working for me since I upgrade it to ios5.
    The reason is that I had Restrictions On: accounts set to "Don't allow changes"
    When you set this like that, you naturally blocking iCloud and FaceTime accounts.
    To solve the problem go to Settings -> General -> Restrictions, and make sure you "allow changes" to accounts and also enable the FaceTime app to work.
    Return to Settings -> FaceTime, and set it to 0 and back to 1.
    That should do the trick. ☺
    I recommend after to "Don't allow changes" to Accounts and Location, to block thieves disable the "Find my iPhone" functionality.  
    Good luck!
    Christophe

  • Need Help Finding a Server-Side printing solution - CFMX 7.0.2

    I would like some help in figuring out how I can print PDFs
    to a specified server-side printer. I am running MX 7.0.2.
    Simplifying my process a bit, I would like to create a pdf,
    send that pdf to a server-side printer, then write to a database
    the date&time of when that pdf was printed (actually when it
    was sent to the printer).
    Any advice or a good place to look to help me?
    Thanks.

    First thing I would look at is the capabilities of the
    printer. Good
    quality network printers meant for the job should have all
    you need
    built in. You will just need to send the file to be printed
    to a
    specified directory, URL:port, email address or other network
    protocol
    the printer has been designed to monitor and print anything
    that comes
    its way.
    If your printer is a desktop printer doing a network job you
    will have
    more work to do. The next thing to check out is the printer
    driver
    capabilities, can it be run from the command line or some
    other method
    that is automate-able. ColdFusion can fairly easy send
    command line
    instructions in this type of situation.
    If that is not an option you may be down to the hardest
    choice. If you
    can run some application that can print the document you may
    be able to
    use COM objects to do this programatically. This is a
    challenging task
    and usually very fragile. For example, using COM objects to
    interact
    with MS Word is very difficult - since Word will often
    generate dialog
    boxes that can only be responded to by a user directly
    interfacing with
    the server.
    HTH
    Ian

  • How do I diagnose   No error     when using RAS SDK ?

    How do I diagnose the "No error." message to figure out what the real error is?
    I've enabled -crpetrace 7 in the Report Application Server, but the logs it generates don't mean much to me.
    I 'm attempting to use the SDK via Java.  Some existing reports work fine with the RAS, but some don't (or I wouldn't be posting here).  The current one I'm having issue with has 2 tables, (mainreport1234table0_ttx and mainreport1234table1_ttx).  I try to set the datasource like so:
    rcd.getDatabaseController().setDataSource(resultSetList.get(0),tableAlias,tableAlias);
    and immediately get this exception with no further details:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    No error.---- Error code:-2147483648 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.verifyDatabase(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bd.onDataSourceChanged(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setDataSource(Unknown Source)
    What can I do to diagnose this further?
    Is there something I should be looking for in the Diagnostics log? It doesn't carry much meaning for me.
    N/A:-1,Verifying database connections,Elapsed Time,"10"
    ..\cserrinf.cpp:512,Creating new error object,Code,"31816"
    ..\cserrinf.cpp:513,Creating new error object,Error message,"Logon failed."
    ..\cserrinf.cpp:514,Creating new error object,lineN,"551"
    ..\cserrinf.cpp:515,Creating new error object,filename,"..\..\src\data\queryenghelp.cpp"
    N/A:-1,Creating new error object,Elapsed Time,"4"
    ..\..\src\reportdef\containers\rptdef.cpp:968,End changing report structure,Compiling all formulas,""
    N/A:-1,End changing report structure,Elapsed Time,"1"
    ..\cserrinf.cpp:512,Creating new error object,Code,"31816"
    ..\cserrinf.cpp:513,Creating new error object,Error message,"Logon failed."
    ..\cserrinf.cpp:514,Creating new error object,lineN,"551"
    ..\cserrinf.cpp:515,Creating new error object,filename,"..\..\src\data\queryenghelp.cpp"
    N/A:-1,Creating new error object,Elapsed Time,"4"
    ..\..\src\print\datasource\viewctrl.cpp:1302,Reset reportParametersIDs,nextReportParametersID before resetting,"1"
    ..\..\src\print\datasource\viewctrl.cpp:1320,Reset reportParametersIDs,Current nextReportParametersID,"0"
    N/A:-1,Reset reportParametersIDs,Elapsed Time,"2"
    ..\..\src\data\datainterface.cpp:17127,Check whether business view has data connection data access right denied,Business View has data connection data access right,"FALSE"
    ..\..\src\crpe\crpe4.cpp:2622,GetNthTableDataConnection diagnostics,<jobid,table:connection> pair is ,"<1,0:6>"
    N/A:-1,GetNthTableDataConnection diagnostics,Elapsed Time,"1"
    ..\..\src\crpe\crpe4.cpp:2622,GetNthTableDataConnection diagnostics,<jobid,table:connection> pair is ,"<1,1:7>"
    N/A:-1,GetNthTableDataConnection diagnostics,Elapsed Time,"1"
    ..\..\src\crpe\crpe.cpp:833,Closing engine,Before close engine use count,"4"
    ..\..\src\crpe\crpe.cpp:858,Closing engine,After close engine use count,"3"
    N/A:-1,Closing engine,Elapsed Time,"2"

    So now I've found the "-trace" flag that can be added to the Report Application Server (RAS) and I've managed to find some more line of logfiles.  <br />
    Here are some fun lines from a crystalras_201163_155350_5268_ras.log:<br />
    TraceLog 2011  6  3 10:55:14.033 5268 7284 (:5) (..\cdtsagent.cpp:2737): doOneRequest saRequestId_verifyDatabaseRequest in
    TraceLog 2011  6  3 10:55:14.034 5268 7284 (:5) (..\cdtsagent.cpp:873): JobSharing: getMatchingReportHandler: begin.
    TraceLog 2011  6  3 10:55:14.035 5268 7284 (:5) (..\cdtsagent.cpp:881): JobSharing: getMatchingReportHandler: job bound, null doc, or job locked and not a write action. returning.
    ErrorLog 2011  6  3 10:55:14.038 5268 7284 (:5) (..\cdtsagent.cpp:3321): CDTSagent::doOneRequest reqId=202: CSResultException thrown.   ErrorSrc:"CRPE" FileName:"..\reporthandler.cpp" LineNum:18306 ErrorCode:0 ErrorMsg:"
    No error." DetailedErrorMsg:""
    TraceLog 2011  6  3 10:55:14.044 5268 7284 (:6) (..\cdtsagent.cpp:2737): doOneRequest saRequestId_verifyDatabaseRequest in
    TraceLog 2011  6  3 10:55:14.045 5268 7284 (:6) (..\cdtsagent.cpp:873): JobSharing: getMatchingReportHandler: begin.
    TraceLog 2011  6  3 10:55:14.048 5268 7284 (:6) (..\cdtsagent.cpp:881): JobSharing: getMatchingReportHandler: job bound, null doc, or job locked and not a write action. returning.
    TraceLog 2011  6  3 10:55:14.135 5268 7284 (:6) (..\cdtsagent.cpp:2739): doOneRequest saRequestId_verifyDatabaseRequest out [NoError]
    TraceLog 2011  6  3 10:55:14.218 5268 7284 (:7) (..\cdtsagent.cpp:2639): doOneRequest saRequestId_closeDataDocumentRequest in
    TraceLog 2011  6  3 10:55:14.221 5268 7284 (:7) (..\cdtsagent.cpp:2641): doOneRequest saRequestId_closeDataDocumentRequest out [NoError]
    TraceLog 2011  6  3 10:55:14.224 5268 7284 (*:0) (.\dts\cdtsagent.cpp:750): doOneRequest caReservedRequestId_CloseServerAgent in
    TraceLog 2011  6  3 10:55:14.226 5268 7284 (*:0) (.\dts\cdtsagent.cpp:758): doOneRequest caReservedRequestId_CloseServerAgent out [NoError]
    TraceLog 2011  6  3 10:55:14.227 5268 8980 (*:0) (.\dts\dts.cpp:1274): RemoveKey: removing agent=3
    Note the presence of the    ErrorMsg:"No error." DetailedErrorMsg:"" <br />
    I'm getting closer to finding that secret decoder ring.
    Edited by: parks104 on Jun 3, 2011 6:24 PM
    Edited by: parks104 on Jun 3, 2011 6:25 PM

  • Contribute changing relative path for server-side include

    I am using Contribute CS3, version 4.1, and my pages crash
    every time a send a draft for review, because Contribute is
    rewriting a relative URL in a server-side include.
    The server-side include (before I send for review) reads:
    <!--#include file="../foo/bar.fileextention"-->
    After I edit other portions of the page and send the draft
    for review, it reads:
    <!--#include file="http:
    //www.servername.com/foo/bar.fileextension"-->
    Which results in the draft being unreadable.
    Is there any way to tell Contribute not to monkey with this
    URL? I have hunted, read the forums, checked the knowledge base,
    and coming up empy.
    Thanks in advance for any help you can provide!! I really
    appreciate it!
    -Nicholas

    Answering my own question.
    I researched this complete forum and with taking ideas from
    different posts, I was able to figure this out. I thought I would
    post it for anyone else needing to know the answer in one place:
    Include tags must read:
    <!--#include virtual="includes/fileName.html"-->
    (Include file is NOT a real HTML doc -- no tags in file
    except for CSS, as it would be used if not using Contribute.)
    No reference to .dwt needed nor Template created.
    No Edit instance tags needed anywhere.
    Contribute user navigates to page:
    [Upper right corner] Click Choose...
    [In my structure] User opens includes folder (double clicks)
    User selects THE file (clicks OK)
    User clicks on Edit Page button
    (Text is now editable.)
    User edits text.
    User clicks on Publish button.
    Worked for me several times trying.
    - Janet

  • Server Side Includes for Apache and parsing text files

    I have an old website I used to do zipped up and I decided to set it up on my personal webserver in OS X . I got apache configured to allow server side includes (edited the httpd.conf to all them:
    <Directory />
    Options FollowSymLinks Indexes MultiViews Includes
    AllowOverride None
    </Directory>
    But I can't get the pages to come up. See I have this .shtml page which loads fine and a part of it has this line:
    <!--#include file="news/news.txt" -->
    But it won't parse that txt file and show the html that its formatted in.
    Anyone have any ideas on how to get it to parse that txt file? Even if I load just that txt file it shows raw code not it formatted. Please help.

    Ignore that first reply. I thought I was dealing with server.
    As usual, I fogot to make sure that Includes was in the Options directive for the DOCUMENT_ROOT or VirtualHost. After 10 years, you'd think I'd remember that. I just configged one of my macs to do SSI. Here's the 3 lines that I changed:
    Line 399 (the DOCUMENT_ROOT definition): Options Indexes FollowSymLinks MultiViews Includes
    Line 887 (To use server parsed HTML): AddType text/html .shtml
    Line 888: AddHandler server-parsed .shtml
    apachectl restart
    and off it went!
    Roger

Maybe you are looking for

  • How to compile a single file in a project

    I have placed my java connector file called "xxxTargetconnector .class" in the below mentioned path D:\FSCM9DMO\webserv\FSCMDMO9\applications\peoplesoft\PSIGW\WEB-INF\classes\com\peoplesoft\pt\integrationgateway\targetconnector I have converted the a

  • Does Log reader agent use sa in sp_replcmds?

    We have publisher, subscriber, and distributor on separate servers. Replication is Push Transactional with replication agents setup to run under SQL Agent account context. We are in the process of disabling sa from everywhere and I am monitoring sess

  • How to debug script logic in NW?

    Hello, does anybody know how we can debug script logic in BPC NW? I wasn't able to find anything in the documentation. Without debuger or log the script logic is quite useless. Thanks for any advice Jan

  • ICloud Storm Rains on Safari

    After adding a bookmark to Safari on my iPhone, Safari on my Mac mini and MBP came up with everything reset.  I only want Safari bookmarks to sync between my iOS devices and my Macs, I don't want Safari to reset on the Macs when I add a bookmark to a

  • [svn:fx-4.0.0] 13391: Updating OSMF for the ASDoc updates and taking a new SWC and RSL.

    Revision: 13391 Revision: 13391 Author:   [email protected] Date:     2010-01-08 16:12:48 -0800 (Fri, 08 Jan 2010) Log Message: Updating OSMF for the ASDoc updates and taking a new SWC and RSL. QE notes: - Doc notes: - Bugs: - Reviewer: Deepa Tests