Code not working in service mode

=============
Dim regKey As RegistryKey
Try
regKey = Registry.CurrentUser.CreateSubKey("Software\ADOBE\Acrobat Distiller\PrinterJobControl")
regKey.SetValue(objPptApp.Path & "\POWERPNT.EXE", strFileOutput, RegistryValueKind.String)
regKey.Flush()
regKey.Close()
log.Debug("key created")
Catch ex As Exception
Throw New ApplicationException("Error manipulating Adobe Distiller registry keys:" & ex.Message)
End Try
ppPres.PrintOut(-1, -1)
=============
Problem-1:
The above code works for vb.net GUI mode, but does not create the name-value in service mode. Any possible reason? "PrinterJobControl" key gets created in both modes.
Problem-2:
Moreover, even if I create the name-value pair manually (i.e. POWERPNT.EXE name-value pair), "adobe pdf" printer fails to print and hangs in service mode. When I open the printer thru' taskbar, it shows 1 document spooling but never completes it.
In GUI mode, all the above code works fine and pdf gets created. Problem with service mode. Please help

Issue is solved

Similar Messages

  • ADS does not work.(Service call exception)

    Hi All,
    According to SAP note 937697 "Usage of SAP NetWeaver BI Diagnostics & Support Desk Tools", when running the tool, it gives following error:
    ADS does not work.(Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://sapbwd.ni.ad.newsint:50000/AdobeDocumentServices/Config?style=document")
    I have been looking into system to find out how to solve the issue, but could not, is there anyone who can help me with exact instructions what I do need to do.
    Thanks in advance
    sahmad

    Dear Sahmad,
    I would suggest you to check notes 1004321 and 944221. The first one says that mostly of this kind of issues (and I have already seen several ones) is caused for bad passwords for user ADSUSER or this account expired. The second note is a troubleshoot note you can also do.
    You can also follow this procedure to check that:
    Please open the Visual Administrator and browse to Server -> Services -> Security Provider -> Policy Configurations
    In the Components tab you will see the service.destinations policy. Click on this and then click on the AccessDestinations security Role. Modify this and add the J2EE_ADMIN/Administrator user to this role and save.
    Maybe the password is not set correctly as well. I think it worths to be set it again. First you have to identify where your ADSUSER maintained.
    Go to http(s)://<SERVER>:<PORT>/useradmin search for ADSUSER If Datasource:
    - LDAP -> check psw of ADSUSER in LDAP and enter it in SM59
    - UME data -> check psw of ADSUSER  in Visual Admin and enter it in SM59
    - ABAP -> check psw of ADSUSER the ABAP system in the following client:
    Visual Admin->UME Provider->Properties->ume.r3.connection.master.client
    If you want, also, you can change the ADS by the SAP Export Library, as per SAP Note 1112132. It is very simple to activate and will bypass ADS, doing every function ADS does.
    I hope it helps.
    Kind Regards,
    Marcio

  • NTFS is not working in 64bit-mode

    NTFS is not working in 64bit-mode but in 32bit-mode all right !!! ***?!

    dont work int volume with XP and ext volume just sample NTFS file server ! I do not understand ! (((

  • My iPhone will not work in landscape mode anymore, how do i get to work again

    my iPhone will not work in landscape mode anymore, how do i get to work again??

    Double click round home button then slide icon on the bottom of screen to so you go all the way to left.  There you will see a square icon with a circle arrow .  That is the screen rotation control button.  Tap on that to lock/unlock screen rotatio

  • Input Textfields not working in fullscreen mode

    Input Textfields not working in fullscreen mode any one help me.

    Quotes from Adobe:
    "Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode."
    Check with this article to know more: http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html

  • PS4 Game Voucher Code not working

    my PS4 Game Voucher Code not working and says: "The code you entered may not be correct or may no longer be valid" "Please check your entry (e-820000134)  

    Voucher codes are region-specific. For instance a US voucher won't work with a UK account. First thing to check is whether the voucher's region matches your account's region.

  • End Routine Code not Working after Support Pack Upgrade

    Hi BI Community,
    We have recently upgraded to SPS17 (BW SP19) for our production system and the code deriving the values of several attributes in the end routine of the transformation for one InfoObject (as info provider) does not work anymore. We have been trying to identify the root cause but the fact is that we did not change anything to the InfoObject and its transformation and this used to work fine. The strange thing is that when we debugged the code we could see the value of the aforementioned attributes was derived correctly but the value is just not updated to the InfoObject where we still see the old values for these attributes.
    We have a similar InfoObject with the same end routine code in the transformation and it is working fine. We are out of idea what could have caused this during the SP upgrade.
    Thanks in advance for your feedback.
    Regards,
    Peter

    Cannot say what might have caused it but one check you can perform.
    Open your transformation in change mode and you can see a button next to create end routine button, titled ' Update Behavior of End Routine Change', click on that and say all fields.
    Hope it helps...
    Regards,
    Ashish

  • Wireless works FINE in Safe Mode, WILL NOT work in Normal Mode

    Hi All:
    I've been smashing my head against the wall with this one. I have uninstalled ALL unnecessary applications I could find. Basically all that is left is Windows XP, Drivers and Patches in Add/Remove Programs. I have removed the wireless driver, downloaded a newer one and installed it, still nothing. I have tried it using no Wireless Security on the AP, and also using WPA, and wouldn't work with either in Normal Mode, but worked with both in Safe Mode. I ran a virus and spyware check (before uninstalling Norton), and it came out clean.
    The weirest thing is, sometimes it does connect and get an IP in Normal Mode, but when I run a ping to my local gateway, half the packets are lost (timeout), and the ones that do reply I see a response time ranging from 2ms to 5000ms with no other traffic. I have no idea what can be causing this. Any help would be greatly appreciated.
    If all else fails, I will resort to formatting it and installing WinXP from scratch, since I doubt it's hardware.

    It appears that some device whose driver does not load in Safe Mode malfunctions.
    If this occurs before loading any drivers for added devices, then you'll need service.
       Locate a Service Center
    -Jerry

  • Ctrl+tab is not working in editing mode

    I have JcheckBox and JTable in my JPanel. When user clicks or presses F2 to edit any cell value of the JTable a comboBox will appear with possible values. (This comboBox is coming from table CellEditor). When user presses ctrl+tab from the table focus should transfer to JComboBox all time. It is working only when the user presses ctrl+tab from the table cell which is not in editing mode. If the user presses ctrl+tab from the table cell which is in editing mode (i.e. focus is on the ComboBox of the cellEditor) it does not work. Please help me to find the solution.
    I give a sample code here for your reference.
    public class Frame1 extends JFrame {
    public Frame1()
    super();
    this.setLayout( null );
    this.setSize( new Dimension(400, 300) );
    JTextField ch = new JTextField();
    ch.setVisible(true);
    ch.setBounds(10, 10, 10, 10);
    this.add(ch, null);
    DefaultTableModel tmodel = new DefaultTableModel(3, 1);
    tmodel.setValueAt("0 0 1",0,0);
    tmodel.setValueAt("1 0 1",1,0);
    tmodel.setValueAt("2 0 1",2,0);
    JTable custLayersTable = new JTable(tmodel);
    custLayersTable.getColumnModel().getColumn(0).
    setCellEditor(new ComboEditor());
    custLayersTable.setBounds(new Rectangle(40, 40, 280, 145));
    custLayersTable.setSurrendersFocusOnKeystroke(true);
    this.add(custLayersTable, null);
    public static void main(String[] args)
    Frame1 a = new Frame1();
    a.setVisible(true);
    final class ComboEditor extends AbstractCellEditor
    implements TableCellEditor
    public Component getTableCellEditorComponent(JTable table,
    Object value,
    boolean isSelected,
    int row,
    int column)
    Vector<String> layerValSet = new Vector<String>();
    for(int i=0; i<3; i++)
    layerValSet.add(row+" "+column+" "+i);
    mComboModel = new DefaultComboBoxModel(layerValSet);
    mComboModel.setSelectedItem(value);
    mEditorComp = new JComboBox(mComboModel);
    return mEditorComp;
    public Object getCellEditorValue()
    return mEditorComp.getSelectedItem();
    private DefaultComboBoxModel mComboModel;
    private JComboBox mEditorComp;
    }

    Thanks a lot for your reply.
    Since the textField is in a different class i could not use the transferFocus API directly. I tried the following code in the keyreleased event of Combo Box but it was not working.
    KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent(
    e.getComponent().getParent());
    I also tried the following code in stopCellEditing and is not working.
    KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent();
    Is there any other way to achieve this?

  • BDC is not working in background mode and working fine in Foreground mode

    Hi Experts,
    I have created a BDC in SHDB for the transaction code:CWBQM for creating and deleting the record and converted the BDC recording into the program using call transaction. It is working fine in both foreground and background. When I given the same program for users testing one for the user was able to delete the records but Creation is not working in the same BDC. He is able to create the same records in another PC and the problem is only in that PC and only during the creation of the record. When I change the mode to 'A' mode for testing and request the user to execute and it is working fine the records created successfully. What could be the issue ?
    Thanks,
    Hema

    Hello,
    While recording BDC in SHDB try setting "Simulate background mode" flag and give a try.
    Cheers,
    Nag

  • DispatchEvent not working in debug mode

    Hello,
    I have a localconnection, and when I receive a message from
    the local connection I dispatch an event. However, the dispatch
    event does not work. I step into the code and go into some
    Macromedia code for the "mx.events.EventDispatcher.dispatchEvent"
    and "mx.events.EventDispatcher.dispatchQueue", and when I inspect
    my variables the eventObj has both a target and a type set, but
    when the code tries to access them through eventObj.target and
    eventObj.type it returns null.
    Also, this only happens in debug mode (Debug -> Debug
    Movie) and not in test mode (Control -> Test Movie). In test
    movie the exact same code works flawlessly.

    Im not very sure just try to help but look this one
    mx.utils.Delegate
    i look for some issue with your problem and i think this can help
    you.

  • EPMA not working: Requested service not found error , version 11.1.2.2

    Hi All,
    I am facing problem as my EPMA (version 11.1.2.2) connection is not working and it is showing the following error after giving the user credentials
    Code: com.hyperion.awb.web.common.DimensionServiceException
    Description: An error occurred processing the result from the server.
    The connection was working fine till last Friday and I had to restart all the services followed by a network slowness. After that I could not make EPMA working. I have tried the following steps so far (as recommended on similar issues)
    1. Increased the DimensionServer startup time to 1800 in BPMA_Server_Config.xml
    2. Restarted EPMA server and services.
    Please note that I have the environment where EPMA is on Windows server and Essbase is in Linux server. Hyperion planning and Essbase connection is working fine. I am using Oracle 11g for EPMA relational database.
    Would appreciate your help to resolve the issue.

    Hi John,
    Thanks so much for your response.
    I checked the event viewer and found some Oracle connection error.
    [EPMA Server Startup] FATAL An error occurred during initialization of the Dimension Server Engine: ORA-03114: not connected to ORACLE.Oracle.DataAccess.Client.OracleException ORA-03114: not connected to ORACLE at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck) at Oracle.DataAccess.Client.OracleTransaction.Commit() at Hyperion.DataAccessLayerCore.DatabaseContext.Commit() at Hyperion.DataAccessLayerCore.DALDatasetCommand.Dispose(Boolean disposing) at Hyperion.DataAccessLayerCore.DALRowset`1.Dispose(Boolean Disposing) at Hyperion.DataAccessLayerCore.CommandWrapper.Dispose() at Hyperion.DataAccessLayerCore.SchemaCommand`1.Dispose(Boolean disposing) at Hyperion.DataAccessLayerCore.SchemaCommand`1.Dispose() at Hyperion.DataAccessLayerCore.GenericDAO.Select[T](Action`1 callback, SetParamsEvent`1 onSetParams) at Hyperion.DimensionServer.DAO.DimensionPropertyManagerDAO.LoadDimensionMemberMemoProperties(Int32 libraryID, Int32 dimensionID, Action`1 action) at Hyperion.DimensionServer.PropertyManager.LoadDimension(Dimension dimension) at Hyperion.DimensionServer.PropertyManager.LoadProperties() at Hyperion.DimensionServer.Library.Load() at Hyperion.DimensionServer.Global.Initialize(ISessionManager sessionMgr, Guid systemSessionID, String sqlConnectionString)
    [EPMA Server Startup] ERROR SVR_ERR_PROCESSMGR_CANT_INIT_SESSIONMGR:Cannot initialize the Session Manager.Hyperion.DimensionServer.Interface.Exceptions.EPMAServiceException: Cannot initialize the Session Manager. ---> Oracle.DataAccess.Client.OracleException Connection request timed out at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src) at Oracle.DataAccess.Client.OracleConnection.Open() at Hyperion.DataAccessLayerCore.DatabaseContext..ctor(DataAccessLayer dataAccessLayer) at Hyperion.DataAccessLayerCore.DataAccessLayer..ctor(NameValueCollection settings, String tablePrefix, String baseNamespace, String schemaVersion, Boolean onlyLoadKnownTables) at Hyperion.DataAccessLayerCore.DataAccessLayer..ctor(NameValueCollection settings, String tablePrefix, String baseNamespace, String schemaVersion) at Hyperion.SessionManager.DAO.SessionManagerDataAccessLayer..ctor(NameValueCollection settings) at Hyperion.DimensionServer.SessionManager.SessionStoreRdbms.Initialize(String rdbmsVendor, String rdbmsConnParams, Int32 rdbmsCommandTimeout, Boolean logAllSQL) at Hyperion.DimensionServer.SessionManager.SessionManager.Initialize(String configFileName, Boolean restorePastInstanceSessions, Boolean enableCaching) --- End of inner exception stack trace --- at Hyperion.DimensionServer.Service.Main.InitializeSessionManager() at Hyperion.DimensionServer.Service.Main.Start()
    I am working on different recommendations for this type of error and update if I find any solution. Any help in this regard will speed up the process.
    Thanks again for the guidance.

  • Catalogs, code groups and codes not available in service order in Web UI

    Hi,
    I have created and maintained a subject profile for the service orders that i am using for my business scenarios. The same is visible under the objects tab in transaction data of the service order business transaction in the SAP GUI.
    However the same are not visible anywhere in the Web UI (they are not available in the list of available fields as well in BSP_WD_CMPWB for BT116H_SRVO).
    Can some1 pls advice me with the steps so as to make the catalogs, code groups and codes in my service orders available in the Web UI screen as well.
    Will really appreciate if detailed steps are provided since I am new to Web UI technology.
    Warm regards,
    DP

    Deepak,
    I'm 99% sure (although dont quote me as I dont have a developer key so I cant finish my testing) that you're missing the context Nodes - so although you have the assignment block yuo have no link between the code set and the service order header.  You havent referenced them in your comments on this post in any case. 
    Try this:
    Go into BSP_WD_CMPWB
    In the Browser component Structure open folder Component > Views
    Double-click BT116H_SRVO/DetailsOV and in the structure expand to BT116H_SRVO/DetailsOV > BT116H_SRVO/DetailsOV > View Controller  > DetailsOV.do > Context
    Right-click on folder Context Node and click Create
    Follow through the wizard defining a Z context Node (e.g. ZBTSubject) and a Model Node of BOL Entity BTSubject
    Define any Dependencies etc you may wish to have and so on (most of the wizard is optional)
    Repeat the same for the BOL Entity BTSubjectSet
    Now go back in and see if your values are populating.  I'm not a developer (and never have been), so I cant guarantee this will work as I dont have a developer key to test this, but I am quite sure that this needs to be done for you to get your values populating.
    Good luck, Merry Christmas and a Happy New Year (& please award points if useful!)
    Andrew Griffin.

  • My ajax appliction only not working in http mode

    My testing page works in local mode such as
    C:\Inetpub\wwwroot\ajax_test\mypage.html
    but if I try in
    http://machinename/ajax_test/mypage.html,
    it doesn't show any records.
    Any clue?
    Thanks
    Riverboat
    Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>My First AJAX Application</title>
    <script type="text/javascript"
    src="includes/xpath.js"></script>
    <script type="text/javascript"
    src="includes/SpryData.js"></script>
    <script type="text/javascript">
    var dsEmployees = new
    Spry.Data.XMLDataSet("data/xmlQueryResults4.xml",
    "Dataset1/TaxParcels[position() >= 2 and position() <= 4]");
    function myPageFunction(rowNumber)
    if(rowNumber>0 && rowNumber<=10){ return
    rowNumber;}
    </script>
    </head>
    <body>
    <div spryregion="dsEmployees">
    <table border="1">
    <tr>
    <th scope="col"
    onclick="dsEmployees.sort('OBJECTID');">ObjectID </th>
    <th scope="col"
    onclick="dsEmployees.sort('BLKID');">BLOCK ID</th>
    <th scope="col"
    onclick="dsEmployees.sort('PARC');">PARCEL NUMBER</th>
    <th scope="col"
    onclick="dsEmployees.sort('PIN');">PIN</th>
    </tr>
    <tr spryrepeat="dsEmployees"
    sprytest="myPageFunction({ds_RowNumber})">
    <td>{OBJECTID}</td>
    <td>{BLKID}</td>
    <td>{PARC}</td>
    <td>{PIN}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>

    Hmmm, so when you say it doesn't show any records, is the
    whole region not rendering? Or do you actually see the data
    references rendering on the page?
    I ask because if you see the data references, that means the
    page failed to load the JavaScript files.
    If your region doesn't show up at all, it means the data set
    failed to load any rows of data. The XML file is on your server
    right?
    --== Kin ==--

  • BDC not working in N mode due to 'S' Message but same working in 'E' & 'A'

    Hi ,
    I am using CALL Transaction method for doing a BDC of MBST Transaction ( sap-pp ) .
    When I perform the BDC for multiple items the same works in 'A' and 'E' mode but not in the 'N' mode .
    Please suggest how can I ignore system message in 'N' mode and make the bdc work in background irrespective whether the message comes or not .
    CODE USED :
        CALL TRANSACTION 'MBST' USING it_bdcdata  MODE p_mode " p_mode ( A,N,E)
             UPDATE p_mode MESSAGES INTO it_bdcmsg.

    Hi
    record your BDC for the message type S and try
    Thanks
    Shiva

Maybe you are looking for

  • Number of Vendor in the given date range

    Hi All, I have a requirement like I need to calculate Total Number of Vendors in a given Date in Report Level. Could anyone please let me know how to do this? Thanks in advance. with Regards, Mahi.S

  • IPod video question...

    Hi people. I am looking forward in buying a 30GB MP3 player after a week and my tight choices came down on a Zune and an iPod video. I did a lot of research on both, including going to Apple's Tech Specs of the iPod video. It said there, that you mus

  • I want to discontinue printing the daily manager

    I want to discontinue the automatic  printing  ofthe daily manager

  • Dot-Matrix Printers configuration.

    Hi All, Anybody has any documents on these (weired) Dot Matrix printers configuration. Am working on Japanese characters and the output of the printer behaves weiredly for 1 byte characrers and 2 byte charactre. So when I try to print using the same

  • Tx-2 1010ea - Touch Screen

    Can someone please help me. My touchscreen functionality seems to have a mind of its own. Every few seconds it keeps randomly havin what I can only describe as an 'attack' and just selects things by itself so as Im trying to use the laptop, it interr