Directing C++ cout code to current line printer

Friends:
Has anyone figured out how do direct the output of a C++ program under XCode to the current line printer? If so, I'd love to see a simple sample program.
Thanks again!
Migs

The exception says it is failing on GetActiveObject, not CreateItem. The error is occurring because Outlook isn't in the ROT.  Based upon some old KB article Office doesn't insert into the ROT immediately. As such you may not have access to Outlook
at the time you are trying to access it. Refer to this sample
code as to how you might find the Outlook instance. There are still no guarantees though as Outlook could be starting up or shutting down.
Michael Taylor
http://blogs.msmvps.com/p3net

Similar Messages

  • How to read current line number in function module sourrce code?

    Hi All,
    How to read current line number in function module sourrce code?
    regards,
    Anuj

    If you have new editor you would be able to see the line number. 
    Or in the Dump screen - there is a button called Debugger - click that you would be able to see the code where dump has occured..  you would be able to find the line number from there.
    To get the new editor with line number , you need to change the settingsin SE38.
    Regards
    Vivek

  • How I activate, when in code view current code line, to be highlighted (all line) eg light-blue ?

    How I activate, when in code view current code line, to be
    highlighted (all line) eg light-blue ?

    Actually, in Windows (XP) the highlight color (in DW8) is a
    byproduct of the
    color scheme you set for your desktop.
    Walt
    "Michael" <[email protected]> wrote in message
    news:gn7fpk$hbp$[email protected]..
    > In code view, click the line number in the left margin
    corresponding to
    > the line of code you wish to highlight. Left click that
    number and the
    > whole line will be highlighted in blue.
    >
    > Michael
    >

  • Get the current line no.(similar to sy-linno in report) in  Sapscript form

    Hi everyone,
    In ABAP reporting, you can use sy-linno to determine the current line no.
    But if in sapscript form,
    does any system field to get the currect line no. or y-origin. ?
    Just say the program is now runing and have written several lines in a window of the form.
    AS         This is the first line
    AS         This is the second line
    AS         This is the third line
    how to get the current line = 3 or  yorigin '+3'  LN?
    Thanks for reply in advance.

    Hi,
    you can also chk the sy-linno directly in your script.
    Regards
    Subramanian

  • Can the current line be highlighted using a background color or have the cursor flash?

    I use the split screen and left click in the Design pane to jump to where I want to be in the Code pane in Dreamweaver CS6. The problem is that it can be very hard to tell where the cursor is in the Code pane since the cursor doesn't flash.
    Is there a way to force Dreamweaver CS6 to change the background color of the currently selected line or at least have the cursor flash in both panes? There must be some way to make it easier to find the current line of code.
    Thanks.

    John Waller wrote:
    The cursor does not flash in Code View only when Code View is not in focus i.e. you're working in the Design View window in Split View.
    In those caases, I just highlight a word or two in Design View and the corresponding words are highlighted by DW in Code View (even when Code view is not in focus).
    Thanks. I've been doing that, but sometimes there is no text to highlight. I hoped Dreamweaver might have a hidden setting that I could enable. That's a lot of extra sliding of the hand/wrist for no good reason when it would be easy for the Dreamweaver programmers to change the background color of the current line or make the cursor flash or do something else to indicate where you are in the code besides making the user constantly make a smearing action with the mouse. All of those extra movements add up the wear and tear when you're trying to avoid getting a repetitive stress injury, especially if you already use mouse gestures in a browser.

  • PDF form with line printer

    Hi,
    Is there a way to use PDF form with line printer? how, and the pros & cons. Currently we are using SPF to develop pdf form in sap, however it has limitation to print on line printer that we need to print on 3 ply form. The only option is to convert all PDF form to sap script.
    If you have any ideas, please advise. Thanks.

    Hi courtneyp58664902,
    I would recommend you to follow the steps detailed on the page associated with this link (http://wwwimages.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-con vert-forms-into-fillable-pdf-c… ).
    I would recommend you to Save the pdf with reader rights enabled [ File -> 'Save as other' -> 'Reader extender PDF' ->  'Enable More tools ( includes form fill-in and save)' ].
    Please let me know if you face any challenges or need any further assistance.
    Regards,
    Rahul

  • How do I change "At Insertion Point" to "Below Current Line" globally?

    Hello,
    I have a book that I will be converting to Structured FrameMaker. All of the graphics are referenced to the chapters with the Anchored Frame set to:
    "At Insertion Point"
    "Distance Above Baseline: 0.0 pt"
    If I do not change the Anchor Frame to "Below Current Line", then all of my graphics will float above the text, when in Structured FrameMaker and I will have to manually set each graphic to "Below Current Line".
    Since I have already set all the graphics to "At Insertion Point", I was wondering if there was a way I could change this to "Below Current Line" - either through Find/Change or through some plugin.
    I appreciate any/all suggestions related to this topic.
    Thanks,
    Jim

    Hi Jim,
    You could save the documents as MIF and search/replace the correct MIF codes (the MIF files are plain text files). Otherwise, you could use FrameScript or the FDK to do it. If you are interested in a FrameScript solution, please contact me offlist. Thank you very much.
    Rick Quatro
    585-659-8267
    rick at frameexpert dot com

  • Statusbar displaying current line number?

    Hi,
    I am building a swing application where I have one text editor and one status bar. I want to display current line no in status bar. I tried with getCaretPosition() but it does not returns line number, is there any other way to get current line number to display it on status bar? Thanks.

    is there any other way to get current line number Did you search the forum?
    How about the keywords "current line number", taken directly from your question. So you can see its really not that hard to think of keywords to use in a search.

  • How to read a current line in table control in dialoug program ?

    How to read a current line in table control in dialoug program ?
    this code required to provide F4 help.

    Hi,
    You can use the variable <tablecontrol>-Currentline as Ebus says but there is a problem with this.Suppose there are 10 records in the table control with only 5 records visible then when u press a page down and press F4 the first record in page 2,  <tablecontrol>-Currentline will have value of 1 instead of 6.So you will need to write a small logic for that.
    index = ( <tablecontrol>-topline - <tablecontrol>-currentline ) + 1.
    read internal table itab at index.
    Hope this helps.
    Regards,
    Vivek

  • Current line number in smartform

    Hi All,
              I need to know is there anyway that i can know the current line number in smartforms.
    My requirement is:
       I have 1 header item and its 3 line items, if there is no space in main area to display all the header and its line items , then it sould be printed in next page,
    Eg:                          PAGE 1
    HD       Line
    A           01
                 02
                 03
    B           01
                 02
                 03                       PAGE 2.
              if this is the case then whole B 01-03 should be printed in next page.

    Hi,
    Please search SDN for Page Protection in Smartform Table
    You will get lot of info.
    Regards,
    Vishal
    Edited by: Vishal Jadhav on Nov 5, 2008 12:36 PM

  • Get the index of the current line in use

    Dear All,
    Well how can i get the index of the current line in use?
    this the code I am using :
    Dim i As Integer
    Set oBatchForm = SBO_Application.Forms.GetForm(Form_Id, 1)
    Set oMainMatrix = oBatchForm.Items.Item(Matrix_Id).Specific
    For i = 1 To oMainMatrix.VisualRowCount
        If oMainMatrix.IsRowSelected(i) = True Then
           GB_SelRow = i
            Exit For
        End If
    Next
    Exit Sub
    This code is not working when there is a line in the document type texte.
    please advice.

    Hi Mary,
    this is code in C#.NET which is working fine, try to do same in your code:
    for(int irow=1; irow<=oMatrix.RowCount; irow++)
         if(oMatrix.IsRowSelected(irow))
         SelectRow = irow;
                    break;
    Hope it helps.

  • Random horiz. lines print

    When printing from iphoto to my hp deskjet 6540 occasionally a horizontal blue line prints out- ruining the picture. the line is about 3/4 width of the page and actually extends 1/4" outside of the actual photo print area. The line is maybe 1/8" wide.
    It happens only one out of ten or more prints, only one line on the page.
    Any ideas?

    Try the basic fix: close iPhoto, delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder, launch iPhoto and see if that helps.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Small window changes in line printer

    We are using a line printer EPSON FX-980. We are using sapscripts to print.
    We are printing in a not so flexible format. We have the formats already pre-printed and we need to make small changes to adjust the output.
    Almost everything is alright, except some variables that cross some pre-printed lines.
    We only need to move a window aprox. 1mm down to adjust the exit.
    However, when we try to make small changes, the windows jumps a whole line, not like laser printer that adjust to fractions.
    For example, my problematic windows is in 28 ln. No matter if I change it to 28,01 or 28,5, the widow jumps to 29ln.
    I tough it was the printer couldn't print small details, but I drew several lines with small spaces between in ms paint and it prints them fine. So I'm guessing is the driver.
    I already used the two drivers for line printers, also changed the device type line lenght and nothing has been resolved.
    Is there a way to do this?

    hi,
    Modifying the SWIN (SAPWIN) Device Type
    The SWIN device type allows you to use any printer or fax that the Microsoft Windows Print Manager can use, regardless of whether the SAP R/3 System has a device type for the corresponding device. In this case, it is actually the Microsoft Windows Print Manager and Windows driver that format a document and make an output-ready data stream out of it.
    Modifying SWIN is a little different than working on other device types because SWIN does not deliver an output-ready data stream. Rather, it converts the internal SAP R/3 document format into a special SAP R/3 formatting language. The SAPSprint service understands this formatting language. SAPSprint, in turn, converts the SAP R/3 formatting commands into Microsoft Windows GDI commands, which the Print Manager and the Microsoft Windows device driver can use for preparing print-ready output data.
    The upshot: rather than modifying printer commands in actions and print controls, in SWIN you need to work with SAP R/3 formatting commands. The SWIN formatting language is documented in this section.
    SWIN Device Format Actions
    With SAPscript formats, SWIN does not use the Printer initialization or Reset actions. Enter a comment line -- # Not used -- in these two actions in the SAPscript device formats in your copy of SWIN. This ensures that the actions will be ignored when they are called during output. SWIN list formats do use the Printer initialization and Reset actions.
    In your copy of SWIN, insert commands only in the device type format actions that the SAP R/3 standard device type SWIN uses.
    Frequently Made Changes to SWIN
    &#9679;      Adjusting the position of output on the paper.
    In a SAPscript form definition, positioning information refers to the absolute dimensions of the paper to be used for outputting the form. However, the position information in SAPscript forms is added to the coordinates system of the target output device during execution to determine where the form objects are to appear on the output page.
    Since output devices use different origins for their coordinate systems, this means that SAPscript and the spool system must offer a way to adjust form positionings to reflect the coordinate system used by an output device.
    You can adapt your forms to the differing coordinate systems of output devices in the device definition, where individual printers and fax machines are made known to the SAP R/3 spool system.
    Set the fields: Choose Tools ® CCMS ® Spool ® Spool Administration, change the corresponding output device, and switch to the Output Attributes tab page. There, you can set the horizontal positioning in Horizontal move, the vertical positioning in Vertical shift. Positive values (> 0) move the output down or to the right. Negative values in the format xxx move the output up or to the left. No decimal values are permitted. For fine positioning, use MM (millimeters) or PT (points, 10 points / inch).
    If a window in a form definition is to appear 1 cm from the left edge of the paper, the window will actually be printed 1.5 cm from the left edge of the paper on a Hewlett-Packard LaserJet printer. The LaserJet starts its X-axis coordinate system 0.5 centimeter from the left edge of the paper. On a PostScript printer, on the other hand, the window will start 1 cm from the left edge of the paper, because PostScript uses the physical boundaries of the paper for its coordinate system.
    You can adjust the positioning of the output on the HPLJ4 (LaserJet) printer by entering -5 MM in the Horizontal move field in the second screen of the device definition of each HPLJ4 printer.
    &#9679;      Setting Basic List Print Properties: Character pitch, line leading, type size.
    To make these adjustments, you need to change the Printer initialization action in the X_ formats in your copy of the SWIN device type.
    There, you can adjust the character pitch (character spacing), leading (line spacing), and type size with the following commands:
    Property
    SWIN Formatting Command to Use
    Character pitch
    ec is the type size in twips (20 twips = 1 point).
    For example: eS200X sets the type size to 10 points (200 twips / 20 = 10 points).
    The SWIN data stream protocol is an internal SAP R/3 format that may change without prior notice. SAP intends to make only upwardly compatible changes to the SWIN protocol. That means that you should always be able to use the newest version of SAPSPrint, even if you have not upgraded your SAP R/3 System itself.
    SAP guarantees, however, only that the SWIN device type will function correctly with the development level of the SAPSPrint transfer program that is specified for a particular SAP R/3 Release.
    SAP Printing Guide (BC-CCM-PRN)
    Implementation considerations
    The SAP Printing Guide describes the functions of the SAP Spool System. This system was designed to be used on various platforms. SAP provides its own spool service and a spool database so that users do not have to deal with operating system-specific issues.
    The platform-independent SAP spool system is responsible for the output of forms and documents. The data to be printed is first temporarily stored (“spooled”), then formatted, and finally transferred to a host spool system to be output. You can control all of your output from the SAP System and do not need to arrange further processing in the host spool system.
    The following are among the main tasks of the SAP spool system:
    ·        Processing and managing print requests
    ·        Administering output devices
    ·        Technical mapping of the output devices in the SAP System
    Features
    Among other things, the SAP Printing Guide describes the following:
    ·        Print Process in General
    An introduction for users and administrators, in which the print process from document to printout is explained in general.
    The focus of the introductory sections is the Output Controller (transaction SP01), which can be used by both administrators and users to manage print requests.
    ·        Spool Access Authorizations
    This sections and its subsections describe the access authorizations required specifically for the spool system.
    ·        Possible Print Architecture and Print Methods
    The various print architectures are described in this section and its subsections, that is, the different constellations of hardware and software components with the corresponding access methods: Each architecture also requires a specific print method, such as:
    ·         Local printing: The spool server (application server with a spool work process) and host spool system (operating system spooler) are on the same host.
    ·         Remote printing: The spool server and the host spool system are on different hosts.
    ·         Frontend printing: Print data are to be printed on the default printer of the user’s PC.
    ·         Printing using SAP GUI for HTML
    ·        Output Devices in the SAP Spool System
    Output devices must be defined in the SAP System so that they can be addressed from the SAP System.
    You do this using device definitions with which the devices are managed in the SAP System.
    This link takes you to a description of these device definitions and their printer settings.
    ·        Spool Server
    This section explains what a spool server is, how you define it, and what using logical servers and alternative servers involves.
    ·        Device Types for SAP Output Devices
    Device types are explained in this section. A device type in the SAP system is the category of printer to be addressed. The information in the device type, such as font selection, page size, and character set selection is used to convert a document from the internal SAP format to a device-specific, printable data stream.
    ·        Connecting to an External Output Management System (OMS)
    This section explains how you can connect the SAP spool system to an external Output Management System.
    ·        Maintaining the Spool Database
    This link takes you to a section explaining how you maintain your spool database to ensure optimal performance.
    ·        TemSe Database Storage
    This section and its subsections explain what TemSe is and how you can manage TemSe objects.
    ·        Analyzing Printing Problems
    This link takes you to examples that will provide you with support in identifying and correcting errors
    Printing from the SAP System
    Features
    Using the SAP output system, you can output many types of documents on output devices such as printers or fax machines: purchase orders, invoices, delivery note, payroll documents, e-mails, report lists, and so on.
    Process Flow
    Unlike most other programs, which forward print requests directly to the printer, the SAP System temporarily stores the print data. If you want to print data in an SAP System (online or in the background) and choose a print function, such as , the SAP output system creates two types of print requests:
           1.      a spool request, which temporarily stores the data to be printed in the system
           2.      an output request, which sends the data to the desired output device
    If you want your document to be printed immediately on your printer without temporary storage, you must have made a setting in the print window for immediate output. In this case, the spool request and output request are generated immediately, and the data is printed.
    If you want to temporarily store the data, do not choose print out immediately. You can display the temporarily stored print request (spool request) in the output controller and/or print it at a later time
    thanks
    karthik

  • Error code 20600 when starting printer monitor ImageprografIPF5100 (canon)

    Recently I bought a new MacBook Pro including OSx 10.8.2
    I'm a photographer and use a Canon ImageprographIPF5100 to output my work.
    I set up my new computer with help of the TimeMachine so I have completely the same environment as on my old MacBook pro running OSx 10.6
    When I connected my printer it was clear that the current driver was not going to work on 10.8. On the Canon USA site I found the driver for my printer working on OSx 10.8 and installed it. The printer is connected to the computer with the USB port.
    Right away it was clear something is wrong; after installing the driver the software asks me to point out the printer in a list, but the list is empty. After starting the printmonitor I get the error message "Error Code 20600 Failed to iniotialize communication module"
    Looking at other discussions on this site I figure the old driver has not been completely whipe'd from the system. Is there someone who knows what to do?

    The first action is to remove the current iPF5100 printer from Print &amp; Scan.
    Next action is to remove the supporting driver files. Open Finder and select Go > Go To Folder in the menubar. Then type in /Library/Printers/Canon and press Go. This will take you to the Canon folder where you will see the GARO folder. Trash this folder.
    Still in Finder, navigate to the Applications folder and trash the Canon iPF folder (called also be called Canon GARO).
    With this done, run the iPF5100 driver installer for 10.8, although if you are in a region that uses A size papers then it would be better not to use the driver from USA and use the following driver from Canon Australia.
    http://support-au.canon.com.au/contents/AU/EN/0100489102.html

  • SapScript, How do I read the current line number?

    I have sections of text - each in it's own element with an 'include' of the standard text.
    These sections are variable in size.
    All elements are in the MAIN window.
    I do not want a paragraph to split over two pages.
    How do I read the current line number within the sapscript before the section prints so I can issue a new-page command at the beginning of the paragraph?
    Thanks!

    Yes, that does work for paragraphs.
    If I have multiple elements to print from within a loop where "at first, at each and at last" each call the Sapscript funtcion write_form - how can I keep the whole section together.  protect/endprotect will keep each element together but not the group of elements.
    There must be a way to find the current line number.

Maybe you are looking for

  • Regarding no of rows in table

    Hi Guys, I have requirement to know the no of rows contained in all the tables of a particular database.I have written a PL/Sql script to do this job But there was a little change in the reuirement means now I have to get the tables in the descending

  • Boot Camp Network Adapter drivers

    I wonder if anyone can assist in this? I have installed Windows 7 on Boot Camp, I have booted it, and the thing wont connect to anyhting. THe troubleshooting mentions the lack of network adapters. How do I get these? I have tried the dvd I burned whi

  • Grid caclun based on two grids.

    Hi, I have two grids G1 and G2.Now,I have another third grid G3. All having one database connection only,data is retrieved from one common application. Now requirement is data in Grid G3 should be difference of G1 and G2,i.e. G3=G1-G2 How should I im

  • Safari's "intervention"

    I know a lot of people are having all kinds of problems with the new 3.0 Safari, but I haven't seen a thread about my particular problem, and I'm wondering if anyone can help or if I just have to wait and pray like so many others. My browser quits un

  • ICloud photostream issues with iPhoto 9

    MacbookPro 2013, running 10.9.1 with iPhoto 9.5.1 I have set up a new photostream with iCloud and it's fine on all my devices, but when I try to open the pics through iPhoto it takes me to my 'trash folder'. I can see the folder and the thumbnails ar