Printing specific characters of a line of text

Does anyone know of a good way to extract certain characters from a line of text. Such as printing the first two characters or characters 3 and 4 or characters 7-13 etc. It seems like sed should be able to do this, but I can't find any examples online.
Thanks!

This command will extract the last 3 characters from every line:
sed 's|^.*\(...\)$|\1|'
Middle characters are a little harder. This command extracts the 23rd, 24th, and 25th characters from every line:
sed 's|^.\{22\}\(...\).*|\1|'
But if you are doing columnwise operations, a better tool is awk and not sed.

Similar Messages

  • Printing the First 14 Characters of Every Line in a Text File

    My text file looks like the following:
    1111097116274, H0101C58F8110C005, 1, 16:48:03
    1111097116274, H0100058F8110C006, 2, 16:48:10
    1111097116274, H00F0458F8110C006, 3, 16:48:12I want my java program to print the first 14 characters of every line. Here's what I have:
    import java.awt.*;
    import javax.swing.JOptionPane;
    import java.io.*;
    public class Read {
         public static void main( String args[] ) {
        try {
            BufferedReader in = new BufferedReader(new FileReader("aFile.txt"));
            String line;;
            /*String tagid;*/
            while ((line = in.readLine()) != null) {
                 char[] tagid = line.toCharArray();
                 line.getChars(0, 14, tagid, 0); 
                 System.out.println(tagid);
            in.close();
        } catch (IOException e) {
             JOptionPane.showMessageDialog( null, "Error" );
             System.exit(0);
         Instead of printing the first 14 characters of every line to output, it prints the whole text file.
    Any ideas of what's wrong?
    Thanks.

    Well, that's the thing with a highly tuned, precision engine like your mind, JosAH. Adding a little alchohol to the fuel mix provides a performance boost, but as the alcohol/fuel ration increases, the performance improvement peaks and then degrades, until the performance is actually reduced. Now, I understand that in the case of the magic Grolsch, this performance curve is shifted farther to the right (graphed with Grolsch count as the independent variable, and performance improvement as the dependent variable), but it still occurs.
    I recommend nitrous oxide. You may need to get your piston heads hardened, though.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Copy paste text from pdf exported from Microsoft.Reporting.WinForms.ReportViewer control with Czech specific characters produced box charactex or ?.

    Used Visual studio 2012. In our project there is used the Microsoft.Reporting.WinForms.ReportViewer control. In the report handled by the control are TextBoxs with a text with Czech specific characters e.g. (ř, ě, ...) . When exporting the report to pdf,
    characters are displayed correctly. However when the text with czech characters in the pdf if copied and  placed into the seach box in the pdf document only box characters are displayed. The TextBox in the report use the default font Arial. When the report
    is exported to Word, and then the Word document is saved as a pdf document, its ok. Coping a text with Czech charactes in the result pdf document and pasting into the search box displays again Czech characters not box characters.
    Also when in the report handled by the ReportViewer control are several Tex Boxes and some of the boxes contains Czech characters and some not, after exporting to a pdf document there is problem with text selection. When in the pdf document I'm trying to
    select several paragraphs, some with Czech characters and some without them, selection behaves strangely and jumps from one paragraph to another unexpectedly.

    Hi,
    did you managed to avoid those squares?
    BTW: if any such char. is encountered in a line, the entire line of text is grabbled.
    I've tried even the ReportViewer from MSSQL 2014, but got the same problem. When I've tried IL Spy, I found a code, where it is checked if the PDFFont is composite - depending on that a glyph is created. But that still only a guess.
    I've tried Telerik's reporting, they have similar problem (beside other), but not with the special characters. They produced scuares for some sequences like: ft, fi, tí.
    Please give any info you got.
    Until then my advices for you:
    a) try JasperReports (seems theyre most advanced, although it is java)
    b) Developer express has quiet quality reports - and it seems they got those special chars. right :D
    c) I created a ticket and waiting for Telerik's response (but if I had to choose reporting, I vould stick with a) or b)

  • Deskjet 5525 printing random characters, one line per page when printing both sides of page

    Hi. I have a deskjet 5525 wireless all in one printer. 
    I have installed all of the necessary hardware and have updated it. We have two computers running windows 7, 64 bit. I have not been able to update the firmware on the printer because the HP Device Updater program that does it cannot communicate with the printer via usb cable or wireless on two different computers I have tried.
    When trying to print two sided documents, it will print ok for about two pages, but then, it will start printing on line per page of random characters, blurred lines of text, gargabe basically.
    This is the second printer as the vendor replace the first one with the same problem. You would say, oh a software problem, but I have reinstalled the HP Deskjet 5520 series SW a couple of times, reinstalled the printer, but the problem continues. 
    An old HP deskjet 3845 worked for us pretty well on the same computers.
    Please help.

    Hi Onemangosta,
    I would like to help with the garbled text you are experiencing. I have found a great document for you to use and I can also help you with the firmware update.
    Troubleshoot text that might be gibberish, nonsense, or look garbled or scrambled
    In order to update the firmware on your printer ensure the printer is on the wireless network and touch the Web Services icon (this icon is the 1st of the 4 that run across the top of the front panel - looks like 2 little cell phones). Scroll through the Web Services menu, find and select Product Updates, select Check for Product Updates.
    If the printer is already up to date the front panel will say so, if it is not, the download and install will begin. It is possible you were unable to do the update form the computer because the printer does not need an update. The HP Device Updater will only see a printer that requires the update.
    Hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Printing two lines of text in Print Module

    Is it possible to print two, or more lines of text, say on a contact sheet, such as filename and caption. If so, how?

    Lightroom automatically wraps text under the thumbnail in contact sheets. The Text Template Editor does not allow you to enter line breaks. So, if your Filename is long enough to fill the first line, the caption will start with the second. If not, you can tweak the template somehow so that it looks the way you want.

  • Program to read only specific words in each Line in a text file

    Hi
    I have a question
    I need to write a program where the program must read only specific words in each line
    I will give you an example...
    PSAPPSRV.21201      1-42 13.35.54 238.360 Cur#1.HDEV RC=0 Dur=0.000 COM Stmt=SELECT VERSION FROM PSVERSION WHERE OBJECTTYPENAME = 'SYS'
    PSAPPSRV.21201      1-43 13.35.54 0.040 Cur#2.HDEV RC=0 Dur=0.000 COM Stmt=SELECT STYLESHEETNAME FROM PSOPTIONS
    These are two lines in my text file...now I need to read only the SQL statements present that is both SELECT statements.. Can you please suggest a method.......

    My first reaction to the question is why would you want such thing, but may be I am unknown :)
    Assuming you have the text as string, I mean
    String str = "PSAPPSRV.21201 1-42 13.35.54 238.360 Cur#1.HDEV RC=0 Dur=0.000 COM Stmt=SELECT VERSION FROM PSVERSION WHERE OBJECTTYPENAME = \'SYS\'";you can obtain the sql statement using substring method like
    String result = str.substring(str.indexOf("SELECT")); Again I assume there is no word SELECT preceding and the word SELECT is all caps.

  • Printing Turkish Characters in SAP Script Form

    Hi I want to print a Form where I need to Print Turkish characters from Database. Its Print Preview is coming absolutely right but there is some problem while printing. I shows # symbol in places of Turkish Characters. I have checked the printer and drivers and they are absolutely fine. Printer is printing other documents in Turkish Language but not the form. System has Turkish fonts installed. Kindly help. Thanks in advance.

    Hi
    See this OSS note for your problem
    OSS Note: 776507
    Symptom
    Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
    Other terms
    SAPscript, SmartForms, printing, device types, OTF
    Reason and Prerequisites
    Help required to choose proper fonts in a SAPscript or SmartForm
    Solution
    When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
    1) The language version of the form used to produce the printout.
    Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
    2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
    Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
    3) The output character set of the device type
    Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
    A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
    Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
    As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
    4) The set of available printer fonts for a given device type
    When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
    To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
    If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
    Note on SAPscript/SmartForms Print Preview:
    The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
    A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
    Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
    Which fonts are suitable for a given language?
    Language(s):            Font family to use in a form:
    Latin-1 (Western Europe/Americas) *******
    DE,EN,FR,ES,NL,SV       COURIER, HELVE, TIMES
                            (LETGOTH, LNPRINT)
    Latin-2 (Central Europe) ****************
    PL, CZ                  COURIER, HELVE, TIMES
    ISO 8859-4 (Baltic) *********************
    ET, LT, LV              COURIER, HELVE, TIMES
    ISO 8859-5 (Cyrillic) *******************
    BG, RU, SR, UK          COURCYR, HELVCYR, TIMECYR
    ISO 8859-7 (Greek) **********************
    EL                      COUR_I7, HELV_I7, TIME_I7
    ISO 8859-8 (Hebrew) *********************
    HE                      COURIER, HELVE, TIMES
    ISO 8859-9 (Turkish) ********************
    TR                      COURIER, HELVE, TIMES
    Simplified Chinese **********************
    ZH                      CNHEI, CNKAI, CNSONG
    Japanese ********************************
    JA                      JPMINCHO, DBMINCHO, DBGOTHIC
    Korean **********************************
    KP                      KPBATANG, KPDODUM, KPGULIM
                            KPGUNGSE, KPSAMMUL
    Traditional Chinese *********************
    ZF                      TWDPHEI, TWMING, TWSONG
    Thai ************************************
    TH                      THANGSAN, THDRAFT, THVIJIT
    Arabic (Unicode systems only) ***********
    AR                      ANDALE_J
    Verify your output by examining the OTF data
    When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
    The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
    Goto->Display Requests->Settings
    and choose
    Display Mode: Raw
    Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
    Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
    //XHPLJ8000    0700 00000000001
    IN04EALEXTEST_ZEBRA
    IN05%PAGE1
    OPDINA4  P 144  240 1683811906000010000100001
    IN06%WINDOW2
    MT0024401289
    CP11000000E
    FCHELVE  120  00109XSF100SF101110000067E X
    UL +0000000000000
    SW00067
    CT00000000
    ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
    The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
    //XHPLJ8000    0700 00000000001
    The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
    IN04EALEXTEST_ZEBRA
    In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
    The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
    OPDINA4  P 144  240 1683811906000010000100001
    The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
    CP11000000E
    Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
    FCHELVE   120  00109XSF100SF101110000067E X
    Header Data
    Release Status: Released for Customer
    Released on: 22.08.2005  09:57:20
    Priority: Recommendations/additional info
    Category: Customizing
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    BC-SRV-SSF Smart Forms
    <b>
    Reward points for useful Answers</b>
    Regards
    Anji

  • Printing foreign characters

    Hi!
    We have a slovenian (SI) customer. He's living in a street, which contains a "š" character.
    During the printing in the print preview it seems correct.
    But on the printed paper, it is not correct.
    What can I do (please don't answer, ask basis guys).
    Thank you
    Tamá

    Hi
    check this OSS note May be useful
    OSS Note: 776507
    Symptom
    Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
    Other terms
    SAPscript, SmartForms, printing, device types, OTF
    Reason and Prerequisites
    Help required to choose proper fonts in a SAPscript or SmartForm
    Solution
    When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
    1) The language version of the form used to produce the printout.
    Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
    2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
    Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
    3) The output character set of the device type
    Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
    A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
    Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
    As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
    4) The set of available printer fonts for a given device type
    When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
    To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
    If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
    Note on SAPscript/SmartForms Print Preview:
    The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
    A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
    Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
    Which fonts are suitable for a given language?
    Language(s):            Font family to use in a form:
    Latin-1 (Western Europe/Americas) *******
    DE,EN,FR,ES,NL,SV       COURIER, HELVE, TIMES
                            (LETGOTH, LNPRINT)
    Latin-2 (Central Europe) ****************
    PL, CZ                  COURIER, HELVE, TIMES
    ISO 8859-4 (Baltic) *********************
    ET, LT, LV              COURIER, HELVE, TIMES
    ISO 8859-5 (Cyrillic) *******************
    BG, RU, SR, UK          COURCYR, HELVCYR, TIMECYR
    ISO 8859-7 (Greek) **********************
    EL                      COUR_I7, HELV_I7, TIME_I7
    ISO 8859-8 (Hebrew) *********************
    HE                      COURIER, HELVE, TIMES
    ISO 8859-9 (Turkish) ********************
    TR                      COURIER, HELVE, TIMES
    Simplified Chinese **********************
    ZH                      CNHEI, CNKAI, CNSONG
    Japanese ********************************
    JA                      JPMINCHO, DBMINCHO, DBGOTHIC
    Korean **********************************
    KP                      KPBATANG, KPDODUM, KPGULIM
                            KPGUNGSE, KPSAMMUL
    Traditional Chinese *********************
    ZF                      TWDPHEI, TWMING, TWSONG
    Thai ************************************
    TH                      THANGSAN, THDRAFT, THVIJIT
    Arabic (Unicode systems only) ***********
    AR                      ANDALE_J
    Verify your output by examining the OTF data
    When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
    The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
    Goto->Display Requests->Settings
    and choose
    Display Mode: Raw
    Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
    Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
    //XHPLJ8000    0700 00000000001
    IN04EALEXTEST_ZEBRA
    IN05%PAGE1
    OPDINA4  P 144  240 1683811906000010000100001
    IN06%WINDOW2
    MT0024401289
    CP11000000E
    FCHELVE  120  00109XSF100SF101110000067E X
    UL +0000000000000
    SW00067
    CT00000000
    ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
    The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
    //XHPLJ8000    0700 00000000001
    The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
    IN04EALEXTEST_ZEBRA
    In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
    The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
    OPDINA4  P 144  240 1683811906000010000100001
    The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
    CP11000000E
    Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
    FCHELVE   120  00109XSF100SF101110000067E X
    Header Data
    Release Status: Released for Customer
    Released on: 22.08.2005  09:57:20
    Priority: Recommendations/additional info
    Category: Customizing
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    BC-SRV-SSF Smart Forms
    Regards
    Anji

  • AR Invoice Print - Print on Preprinted stationary with Line comments & more

    Hi All,
    I have a requirement to print a report in XMLP for AR Invoice Print.
    Requirement
    For Template Body - Line Items
    Line 1-------------------------------------------------------------------------------------
    Line 2-------------------------------------------------------------------------------------
    Line 3-------------------------------------------------------------------------------------
    ----------------------<LINE COMMENT>----------------------This will be line :4
    Line 5-------------------------------------------------------------------------------------
    Line 6-------------------------------------------------------------------------------------
    Line 7-------------------------------------------------------------------------------------
    ----------------------<LINE COMMENT WITH 2 LINES - So the 2nd line will wrap >-----This will be line :8 and 9
    Line 10-------------------------------------------------------------------------------------
    1. Display 10 lines per page
    2. If there are Line comments for the particular line description then print the line comment in the next line as shown above - So it starts from the begin of the first column and prints till the last column of that particular row
    3. If there are more than say 100-200 characters of text then the Line comments will wrap to the next line
    4. Maintain the size of the frame size (or display 10 lines per page)
    I have already implemented 10 lines per page, which is not at all any issue, but in case there are line comments then it does not count that row. Also if the line comments wrap to 2 or more lines then it is still more complicated.
    Does anyone have a solution to this issue. Also, if any of you have implemented this earlier, kindly let me know if you can share the template for reference.
    Thanks and appreciate all your suggestions.

    Hi,
    Was anybody able to an answer to this issue? I have the same requirement where I have multiple subgroups under main group. To print a fixed number of lines in the template is causing an issue.
    Thanks,
    Sandeep

  • More than 1 line of text when using text generator from file?

    hi
    have 8 line blocks of text to show onscreen.
    would like to use text generatorn>from file
    all they seem to print is one line.
    is there a work around?
    have trhied soft returns and paragraphs on saved text file.
    no change.
    anyonre know how to get 2 or more lines of text?
    thanks in addvance!

    Select the File generator layer and in the Inspector, select the Layout pane and in Layout controls, set the Layout Method to Paragraph.  Narrow your margins and the text will "flow" into multiple lines.
    You can also keyframe the paragraph layout position. [Probably more info than you want here.]
    That said, you can only display *one line* at a time per File Generator. (If you're up to date with Motion [v5.1.2], you can use more than one File generator.) The generator does not accept any other characters for returns other than newline and carriage return.
    I've never tried it, but thinking about it, you can set Tab stops in the Paragraph layout (double click in the layout rectangle and a ruler should appear over the top -- right click on the ruler to set tabs). If you go back into the original text file and where you need to break lines into two or more, setting a left tab stop in the layout very near the end of a line might force the tabbed text into the next line (did I make that clear enough??)

  • Print/displays blank only in place of text (i.e. non printing font)

    I have a need in which we need to substitute current text with spaces for a specific line in the document. As this line of text has a unique font and is used in hundreds of documents, Is there any font which can be substituted in place of current font to have just empty space getting printed in place of current glyphs?
    All documents printing this text use the same font for this text. These documents are printed using a print processing software which allows to swap the font with another one using the mapping. So thought is to find a solution which allows to space out this text without having to extensively modify all documents. Though for this,a font would be needed which will not print the text but emulate it with blank pixels so that rest of the text of the document doesn't shifts it's relative positioning.
    Adobe may have developed such a font though I am not able to find it on web site. Need your help.
    Thanks

    It would of course be possible, for each font ever made, to create a font with the same spacing and kerning but blanks in place of the glyph outlines. That would be a lot of additional fonts.
    But that isn't really what you need. You just want this font to not print. Unless you have a colored background built into your document, that is easily done with search and replace. You just want to find everything formatted with this font, and replace it with the same font, but with the text color set to white. Problem solved. This technique will work in any application that allows you to set the color of text, and search and replace based on font, which includes Microsoft Word. (In the search dialog in Word you'd pick the "formatting" option.)
    If however you are making PDFs, the text would be invisible but searchable, which might be a problem. However, that would be a problem even if you had a font with no glyph outlines.
    Cheers,
    T

  • Printing Invisible Characters...

    Good Morning:
    For training purposes, Is there a way to print the invisible characters in an InDesign document?
    I need to be able to show what characters are being used to demonstrate things like using the tab character, right indent tab character, indent to here, space, em space, etc...
    Please and thanks!
    Theresa

    Yes, Peter, you are correct. I need to be able to show examples of "good" and "less good" methods of typesetting. The screen capture works, but I was hoping to avoid taking all the screen shots. I would love to be able to print out a copy of the document with all of the invisible characters showing that I could demonstrate to our designers where the methods used could be improved. See example below:
    This is an example of a hanging indent being done using a "less than productive" method...
    Notice the manual line breaks followed by a tab character to create the indent on the next line. (GRRRRRR....)
    This is an example of a hanging indent being done using a “cleaned-up” method...
    By using the “Indent to Here” character after the first tab, all of the remaining lines in the paragraph will line up with that space
    regardless of the length of the line of text.
    This is just one of MANY examples that I have of mind-numbing methods that have been used.
    I know that in the Export to PDF dialog there is an option to include visible guides and baseline grids. I was hoping there was an option for "Print Invisible Characters".
    Thanks for all your help!!
    Theresa

  • A good way to get lines into a line of text?

    Hi:
    I'm typing up a legal-style contract-like document for someone, and the text is chock full of things where I need to have straight lines among the characters, like this:
    "…in consideration of _______________ Dollars."
    Thus far, I've been using the workaround of hitting command-shift-U to get the underlined text and pressing the spacebar a bunch of times. This causes some problems when the text needs to be right-aligned. Also, there are a couple of cases where I have a line with a row of text underneath it saying something like "Chairman of the Committee." In this case, I can set a rule above the line. But then, a 1-point rule is slightly thicker than a bunch of spaces set for underline, and while 99% of people would never even notice that, it's bothering the heck out of me.
    So, does anyone have a more elegant way to insert a 1-point line in a row of text than my using the Line Tool to draw a 1-point line and place it in the text manually? I figure, it there's a way to do it while remaining in the text tool, my justified text will look a lot better.
    Thanks in advance for any input you can give me.
    Best,
    Gary
    PS: I'm using CS4/ID 6.0.4

    Excellent suggestion, Peter.
    Tabbing proved to be a little dodgy, simply because my paragraphs are set to Justify with Last Line Aligned Left, and so depending on where I am in a line of text, I'd have to get really deep into tinkering with my tab settings. But just using the space bar and tweaking the character styles yielded fine results.
    Thanks!
    (Now if only ID6 would print correctly when duplexing on my HP 8100 on letter-sized paper…)

  • Print big characters in screen

    Hello gurus,
    Does anyone know if there is any way (using any kind of technology) to print big characters in a standard dynpro?
    So far I used class 'cl_dd_document' in custom containers but letters are not enough big.
    Thanks in advance,
    Eloi

    Dear Eloi,
    Assuming that is a standard dynpro, I believe that you have found a screen-exit.
    So, you can do this writing a HTML code into a custom container.
    DATA: i_result_html  TYPE TABLE OF w3_html,
           i_result_it    TYPE TABLE OF string,
           e_result_wa    TYPE string,
           gv_url         TYPE c LENGTH 255,
           gv_n           TYPE i.
    DATA: o_container    TYPE REF TO cl_gui_custom_container,
           o_html_viewer  TYPE REF TO cl_gui_html_viewer.
    CLEAR: i_result_html,
            i_result_it,
            gv_url.
    * HTML + CSS (Cascading Style Sheets)
    APPEND '<html><head><style type="text/css">' TO i_result_html.
    APPEND 'body {'                              TO i_result_html.
    APPEND 'background-color: #F2F2F2;'          TO i_result_html.
    APPEND 'overflow: hidden;'                   TO i_result_html.
    APPEND 'color: #F2F2F2;'                     TO i_result_html.
    APPEND 'border-style: solid;'                TO i_result_html.
    APPEND 'font-size: 21px;'                    TO i_result_html. <--- FONT SIZE!!!
    APPEND 'font-family: Arial;'                 TO i_result_html.
    APPEND 'font-weight: bold;'                  TO i_result_html.
    APPEND 'margin-top: 0px;'                    TO i_result_html.
    APPEND 'margin-bottom: 0px;'                 TO i_result_html.
    APPEND 'margin-left: 0px;'                   TO i_result_html.
    APPEND 'margin-right: 0px;'                  TO i_result_html.
    APPEND 'text-align: right;}'                 TO i_result_html.
    APPEND '</style></head>'                     TO i_result_html.
    APPEND '<body><div>'                         TO i_result_html.
    APPEND '<font color="red">'                  TO i_result_html.
    * WRITE YOUR BIG CHARACTERS RIGHT HERE...
    APPEND 'BIG CHARACTERS!!11!' TO i_result_it.
    PERFORM f_append_html_message.
    * CLOSING HTML CODE...
    APPEND '</font>'              TO i_result_html.
    APPEND '</div></body></html>' TO i_result_html.
    IF o_container IS INITIAL AND o_html_viewer IS INITIAL.
    * CREATE CONTAINER OBJECT
       CREATE OBJECT o_container
         EXPORTING
           container_name = 'CONTAINER'. <--- CUSTOM CONTAINER NAME
    * CREATE HTML OBJECT
       CREATE OBJECT o_html_viewer
         EXPORTING
           parent = o_container.
    ENDIF.
    * LOADING HTML CODE AND ASSIGN IT INTO AN URL...
    o_html_viewer->load_data( IMPORTING assigned_url = gv_url
                                CHANGING data_table   = i_result_html ).
    * DISPLAY HTML CONTENT!
    o_html_viewer->show_url( url = gv_url ).
    *&      Form  F_APPEND_HTML_MESSAGE
    FORM f_append_html_message .
       CONCATENATE LINES OF i_result_it INTO e_result_wa.
       CLEAR i_result_it.
       gv_n = STRLEN( e_result_wa ).
       WHILE gv_n > 255.
         APPEND e_result_wa(255) TO i_result_html.
         SHIFT e_result_wa LEFT BY 255 PLACES.
         SUBTRACT 255 FROM gv_n.
       ENDWHILE.
       APPEND e_result_wa TO i_result_html.
    ENDFORM.                    " F_APPEND_HTML_MESSAGE
    Rewardful points if useful!
    Regards,
    João

  • How to print the message in 2 lines?

    How to print the message in 2 lines?
    Here i am having it like this... MESSAGE i000(zm) WITH lv_uname.
    here I want to print lv_uname in 2 lines because it lengthy one.
    Thanks,
    Sridhar.

    No man, itas not comming..I am using the below logic to print my message:
        CONCATENATE text-I01 lv_printdate1 text-I02 INTO lv_printname
    SEPARATED BY space.
        MESSAGE i002(zm) WITH lv_printname.
    its printing in a single line...

Maybe you are looking for