How to set default Print layout in SDK!

Hi All
In Form Delivery (ID=140) I want to Add Button to set default print layout by Addon.
Please let me know the interface and the table to do it. Thanks

Hi Tao,
there's a vb6 sample in the DIAPI documentation
Sets the specified report layout as default
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim oReportLayoutService As ReportLayoutsService
Dim oDefaultReportParams As DefaultReportParams
'get company service
oCmpSrv = oCompany.GetCompanyService
'get report layout service
oReportLayoutService = oCmpSrv.GetBusinessService(ServiceTypes.ReportLayoutsService)
'get report layout params
oDefaultReportParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
'set the report layout code
oDefaultReportParams.LayoutCode = "POR20005"
'set the report code
'the report code is the document type code (e.g. POR2=PurchaseOrder)
oDefaultReportParams.ReportCode = "POR2"
'set the user code
oDefaultReportParams.UserID = 1
'delete the report layout
oReportLayoutService.SetDefaultReport(oDefaultReportParams)
i hope it helps you
regards
David

Similar Messages

  • How to set default print orientation in oracle reports 6i?

    Can anyone please help how to set default print orientation of Oracle Reports 6i? Currently document is printed in Portrait orientation, but I need to print it in Landscape orientation. Is this possible?

    It is solved now. Go to Layout Model -> Main Section, Press F4. In the property pallet select the Orientation that is required to be selected when print is taken for that report.

  • How to Set Default Printer Just for Safari

    I use 2 printers.
    One prints paper docs etc.  The other prints labels only.  When i want to print the labels I have to select that printer in the print dialogue in Safari every time.  Super annoying.
    IS there a way to set a gedault printer just for Safari?
    I tried using the localhost:641/admin method and all i get is Bad Request  (the localhost address i mention here is not the actual version as i cannot remember it now, but it was something like that)
    Using safari 6.0.2 and osx 10.8.2

    Please see these docs.
    How To Setup Default Printer for a User. [ID 153927.1]
    How to Set Up a Default Printer for a User Within Oracle Applications [ID 1018856.102]
    How To Define a Default Printer? [ID 1237254.1]
    How To Setup Default Printer For Applications [ID 184109.1]
    Thanks,
    Hussein

  • How too set query print layout parameters?

    Hello,
    simple task:
    1. Open "Query Print Layout...": SBO_Application.ActivateMenuItem("4868")
    2. Handle new reports form: SBO_Application.Forms.ActiveForm (I know, the better solution should be get form with proper TypeEx and highest TypeCount, but now it doesn't matter)
    3. Select row with required report: m.Columns.Item(0).Cells.Item(row).Click(BoCellClickType.ct_Regular, 0)
    4. Run printing: SBO_Application.ActivateMenuItem("519")
    5. Handle new parameters form: ???
    How can I get newly created form containing report parameters (TypeEx "4000")? I wanna set proper parameters and click "OK" to show printed report. Doesn't work handling:
    - FORM_LOAD in ItemEvent
    - MenuEvent for "519" (is only BeforeAction
    - PrintEvent (executed after accepting parameters)
    - ReportDataEvent (passed FormUID belongs to reports list, not parameters)
    In each event I've listed all forms and there is no form titled "Query - Selection Criteria" with expected TypeEx.
    Is there any way to achive this?

    when you activate print preview of printing on selected User Query Layout, you can cacth the ET_FORM_LOAD event of formTypeEx =4000
    It is working. Please note if you do not have this event, you may check your filters (?)
    Then you can populate your values. Based on my experience the click ok button is not working.
    Tip: Search the forum in year 2009 i have posted there sample codes
    Regards
    J

  • How to set default printer in CS5

    I've been using Photoshop CS5 x64, in Windows 7 x64, ever since it came out. I print photographs on an Epson Stylus Photo R2400. I also have an HP Laserjet, for printing documents.
    Whenever I am printing photographs, I change the default printer, in Control Panel, Devices & Printers, to the Epson. Until the last couple of weeks, this has always put the Epson in the default position in the 'Printer' field of the Print Dialog.
    But now the printer field always shows the HP Laserjet.
    This isn't true in any other program. MS Word 2010, Adobe Acrobat, Notepad, Opera, Internet Explorer: they all show the Epson as the default printer. So it seems more likely to be a Photoshop problem than a Windows problem.
    I have the latest Photoshop update, and Windows 7 Service Pack 1. I have the latest drivers  (2007) for the Epson. And I've trashed my Photoshop prefs.
    Is there a solution to this problem?
    Thanks
    Mary

    Noel
    >>If you change the printer in the Photoshop Print dialog, choose [Done], then re-save the PSD, does it come up next time with the proper default?<<
    Well, yes it does, to my surprise--whether I save as PSD or TIF. This is true both of new files (via file dialog) and of existing DNG files newly saved as TIFs in Camera Raw.
    I've now tried opening old files other than the ones I've been working on for the past month. They all default to the Epson printer--not surprising, since I always save files after printing, so that the print settings stick.
    The problem files are the ones I've worked on recently. When opened, they all default to the HP printer. So I'll have to open, change Print settings and save about 200 files. I'll write an action.
    I can't imagine how they got set to the HP in the first place. I've tried turning off the Epson and creating a new file: the Print dialog still says Epson R2400.
    Thanks for your message. It got me to focus more closely on just which files were problematic.
    Mary

  • How to set default printing in black only

    Greetings,
    I'd like to set my default printing with Firefox at black ink only, which I can do individually prior to printing a page, but it reverts to color after that printing. But if I set the size at, say, 80%, that becomes the default setting, or if I set portrait/landscape for a single printing, that becomes the default setting. Why can't the desired black-ink only setting default like the size/portrait/landscape setting? What I want to do is set the printing permanently at black only, and the size at 100%, but allow one-time printing at landscape or portrait, or sizes less than 100% without those settings becoming the default. How can I do this? Thanks for any help
    Best wishes, Tom
    I've tried the help solutions on the website to no avail....

    Greeting ideato,
    Thanks so much for your reply. I've clicked on the Firefox button at upper left, then Print, then Properties, then Advanced, under which is listed Printer Features (I have only 1 printer), below which is a line with Print in Grayscale, clicking on which has has 3 options: Off (apparently default), High quality Grayscale, and Black Ink Only. I click on the latter, and click on OK for this window and others in the sequence, and it'll print in black only for the present printing, but will revert to color for the next printing, 'though like I said, if I change the size to 80% or from portrait to landscape, those settings will remain. I can't figure it out. Again, thanks for any help.
    Regards, Tom

  • How to set DEFAULT printer

    Prior to Tiger I was sure there was a SET DEFAULT option to choose the printer to display as the default. I can't find it and it seems the first alphabetically sorted printer comes up as default.
    Am I missing something?
    I want my laser printer as the default for most things, draft documents etc.

    Go to the Print& Fax Preferences in the System Prefs and look for "Selected Printer in Print Dialog" in the Printing Panel. I'm pretty sure this is what you meant.
    Hope this helps.

  • Setting Default Print Layout

    Hi,
    We use different print templates based on customer group. More specifically, any customers in 'Group A' use 'Template A.' All other customers, regardless of group use 'Template B.' It's no problem to open the PLD window and set template A as default to customers in group A. However, when adding a new group A customer, its default template is template B.
    Is there a way to avoid having to redefine the default BP list for template A after every new BP creation? Thanks.

    The functionality to associate a customer to a specific PLD template is going to be a manual step.  It is not like Pricelist or other functions where the customer when added to a Group will automatically default.
    Please note then when you Add a new BP, right from the BP Master you can click on the pencil icon select the document and link the template.  You need not go to the Marketing document itself.
    May be this helps
    Suda

  • How can I set default printer options on an iMac for an HP pro 8500 printer to print in draft mode?

    How can I set default printer options on an iMac for an HP pro 8500 printer to print in draft mode?

    When you use the Canon driver, the 2 sided printing is set in a different location. There is an entire menu dedicated to it (at least on my mx892). The printer dialog box has a menu selector in the middle of the screen (I think it says "layout" by default). If you click on it, you will see the duplexing options at the bottom. Much more flexibility than the single checkbox available with "airprint". The interface is unusual (at least for me) but you can pre-set up many different configurations (Fast Duplex, Fine Single-sided, B&W, Photo, etc etc.)

  • How to Set up Print As Image Registry Default.

    This is a response to the archived post at:
    martin hrubes, "How to customize printing by registry - print as image" #, 6 Nov 2007 2:28 am
    I was trying to find out how to set the "Print As Image" advanced setting to be enabled by default. Here is what I discovered through trial and error.
    1. The setting is stored per user and per printer. (i.e. it has to be set for each printer for each user.)
    2. The registry setting is stored in the following key:
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\8.0\General\cPrintAsImage]
    3. In this key, each printer has a separate binary value named s0, s1, s2, etc. The number increments by 1 for each printer added. If you open the value data, you will see it contains the name of the printer encoded in hex. (ex. hex coded for \\Server\Printer1)
    My recomendation is to open a pdf file in reader, go to File -> Print ->Select Desired Printer -> Click "Advanced" Options -> Enable "Print As Image" -> Click OK - Click OK again. Repeat for each printer you want to
    change.
    **NOTE** If you don't click OK both times (i.e. cancel the print dialog), the change will not be saved. You have to actually print something to the printer. If you don't want to print something, make sure the printer is offline or not accessible (unplug the network, usb, parallel, serial cable) first. Once the printer has been changed, it will keep the setting until to you change it.
    After you have set-up all of the desired printers, open RegEdit and navigate to the above key. Right click on it, and export it. Note the file name and location you are saving to. Close RegEdit. "Edit" (Right Click) the file just exported ("Opening" the file will just import it back into the registry.). Once opened, highlight and copy the registry key and all of the registry values. Paste the key and values at the end of the file. In one of the keys change "HKEY_CURRENT_USER\" to "HKEY_USERS\.DEFAULT\". Save and exit the file.
    When imported this file will enable the "Print As Image" setting for the currently logged in user plus add the setting to the default users profile so any new users to the machine will have it enabled by default also. However, it will not add it to any other user profiles that already exist on the computer. To do this, either use a login script for domain computers or add the reg file to the "All Users Startup" folder.
    It would be nice to have a setting in the deployment custimazation wizard to handle this, but for now we're stuck with enabling it the hard way.

    Yes Spyla, please see this link http://www.404techsupport.com/2008/09/09/make-adobe-reader-and-adobe-acrobat-use-print-as- image-setting-by-default-2/comment-page-1/#comment-3112.
    Allan, many thanks for your post, it certainly helped point me in the right direction.  what I found though is that you do not need to tick the print as image box at any point during the setting up of this.  All you need to do is add the registry key for whichever version of Adobe you are using for this to work.  So basically. what you are saying for each instance of Adobe is regardless of whether or not the print as image is selected, the registry key is saying always print as image for the printer as specified by the hex code. I have found that for network printers, you have to include the full path i.e. \\<servername>\<printername> e.g \\testserver\printer1 and convert all of that to hex. With later versions (9 up over), they have allowed for the string name of the printer so that it is just plain text which also makes life easier.
    What I do is apply this registry entry via Group Policy on a per room basis so that we only ever need to add one printer to the list.  you could do this globally by adding all printers sequentially using s0, s1, s2 or t0, t1, t2 etc depending on which version you are using.  The screenshot shows the registry key for 1 printer for Adobe Reader 8.
    The value data is the binary code for the actual full printer name
    This works a treat.
    Hope this helps
    Thanks

  • Set Default Printer based on user setting using Powershell script

    Hi 
    I would like to create a script that runs on user log off and captures the default printer (set manually by the user) and then another script to reapply the settings (saved upon log off) when the user logs back in.
    This is because local printers are set as default printer (PDF Creator Programs) when we all use Network Printers so this means a user has to set default printer to the network printer all the time.
    I have found this script to start with:
    $Printer = Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select name | out-file C:\temp\Printer.txt
    But the out file looks like this:
    name
    \\PrinterserverName\Accounts01
    Which I dont see how it can be used on another script plus there are spaces after\Account01 
    Any Ideas please?
    M
    Maelito

    Hi Maelito,
    According to your description, you want to export the default printer name to text file, then read this printer name from text file and set the default printer via Powershell:
    #save printer name to text file
    Get-WmiObject -namespace root\cimv2 -Query “select * from Win32_Printer Where Default = TRUE” -Impersonation 3 | select -ExpandProperty name | out-file C:\temp\Printer.txt
    # read printer name from text file and set default printer
    $name=get-content C:\temp\Printer.txt
    (Get-WmiObject -Class Win32_Printer -Filter "Name='$name'").SetDefaultPrinter()
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Receipt (Incoming Payment) system default print layout

    Hi,
    When I print the Incoming payment receipt with the default print layout - APA Receipt (System), it always show many rows in the table.
    e.g. the incoming payment is a cheque from "Bank of China". I expect there should be only 1 row in the repetitive area.  However, it shows 3 rows for each bank defined in the system.
    Then, I do the following:
    1) I add a database field to get "Incoming payment - Cheques" table, "Bank Code - Account No." field.
    2) Update the existing database fields (Bank Code - Bank Name) in repetitive area, make it "Related to" the above field.
    After that, I get 3 rows, all under "Bank of China"
    How to get rid of the duplicate rows?  I expect to have only 1 row under "Bank of China" in this case.
    I am using SAP Business One 2007.
    Thank you very much!
    Yvonne

    May I have your advise please? Thanks a lot!

  • How to set user specific Layout for executing IW38/IW39  report.

    Dear Experts,
    We have 10 users seperatly, For executing IW38/39 transaction they have maintained seperate layouts for executing the reports. While saving layout they have saved the layout as 'user specific' Now some body has chage the settings.
    After changing the setting all are getting same layout.
    Please suggest how to set user specific layout. When user enter the IW38/39 report by default he should get his layout.
    Thanks in advance.

    Create Variant using SHD0 and with Group and assign to particular user's
    Here is the steps
    Creating a Variant Group
    1. Open transaction SHD0, enter the transaction code, and press enter.
    2. Choose the Standard Variants tab page, and then the sub tab page Variant Groups, and enter a group name, such as GROUP_GEN
    3. Choose Create. Enter a short text on the Maintain Variant Group window that appears and save the variant group.
    Assigning Users
    Once you have created the variant group and the relevant transaction variants with screen variants, you now need to assign users to the variant group as follows
    1. Return to the Standard Variants tab page, Variant Groups sub tab page.
    2. Enter the name of a user that you want to assign to this variant group, and choose Assign. A message that this user was successfully assigned to the variant group appears in the status bar. If you choose a where-used list for users, this user is displayed in the user list.
    3. However, for the screen variants of the variant group that you created above to be displayed for the user, you first need to select Set Proposal. The user is assigned to the group and the associated transactions are started with the corresponding variants only once you choose the Set Proposal function.
    You can use this procedure of user assignment for all other users that you want to add to the variant group
    Hope this helps.
    Thanks
    S.N

  • Setting default printer with printers deployed via print management

    Would like to set default printer on a windows 7 workstation to a printer deployed through group policy using print management.  However whenever machine reboots the defualt changes to a local printer XPS or something else.
    HOw can I set the default printer to one of the deployed printers?

    Even though this is a "machine" connection, the connection is created in each users security context.  Default printers are tied to user profiles and settings.
    I'm sure what is happening is the connection is getting created after the system sets a default or the network path is not yet available when the default printer is set.
    You can use prnmngr.vbs to get and set the default.  If get returns XPS printer, then set can change to one of the valid connections.
    Alan Morris Windows Printing Team

  • How to setup default print to landscape in Reportviewer (printmode activex)

    We have an ASP.NET (2008) application and use the ReportViewer Web Control to show a Crystal Report on the client browser.
       - We set the "PrintMode" property to ActiveX in order to print to the client's local printer.
       - We set up the Landscape in Crystal Report Page setup.
       - We also put  repdoc.PrintOptions.PaperOrientation = PaperOrientation.Landscape in the program.
    The problem is when the user clicks the print icon, the report prints in portrait, not landscape.
    Is there a solution for this or is this a software limitation?
    Thanks.

    How to setup default print to landscape in Reportviewer (printmode activex)
    Hi David,
    Yes, I tried that 1196969 solution first, but it didn't work.  I saw all the discussion in the below thread and it seems a product issue mention by you on Aug 6, 2008 3:19 PM
    CrystalReportViewer default PageOrientation  ASP.NET VS 2008
    I don't know if the fix works for CrystalReportWebFormViewer4 which is what we have on the web server. I put debug alert in the Javascript of the following file
    WindowsMicrosoft.NETv2.0.50727ASP.NETClientFilesCrystalReportWebFormViewer4crystalprinthost.html
    I can see the call goes to the file, but won't get to the window.dialogArguments.paperorientation condition.
    When I write out: window.dialogArguments.paperorientation; it pops up "undefined".
    Is there any updated solution for CrystalReportWebFormViewer4?
    Thank you!!

Maybe you are looking for

  • JSP, BC4J : Allowing users to choose from List of values when in Insert mode

    Hi, I have a requirement in which the user would be able to select a value from a combobox for populating a field when inserting a new record. The list of values in the combo box is derived from a look up table in the database. How can do this? Thank

  • Internet access a nightmare - time to upgrade?

    Hello-- Over the last few months, my Mac laptop (2005 OS X, 10.4, 512 MB) has become increasingly slow  at getting Safari up, loading pages, web navigation, etc. Basically, anything you might do online takes a million years, and often Safari will jus

  • Help in merging the output rtf/documents reports

    Hi, I am working with XML pub tool for a user requirement that 2 output reports(rtf documents) were genated using XML processor from 2 rtf templates, XML data files etc. No I need to merge the 2 output rtf/doc reports . Is there any function in XML p

  • When I click in a text box, the text cursor does not show?

    Especially in Google search box- I can't even press enter to make it search, I have to minimize the window and maximize it to show the cursor. Any way to fix this?

  • Apps not working- YouTube and maps

    My YouTube app disappeared after the ios6 update. And the public transportation directions on the maps is great also. For those of us in the city who relied on that. What's the best place to go?