Getting unformatted text after decryption of formatted encrypted text

The problem getting unformatted text after decryption of a formatted encrypted text.
Im using Bouncy Caslte for encrypting the mail message.its a well formatted text but
after decryption its unformmated?
What will be the problem? why im getting the decrypted text as unformatted?

sorry im using Bouncy Castle for encryption
This is my code
try {               
               Security
                         .addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
               KeyStore ks = KeyStore.getInstance("PKCS12", "BC");
               ks.load(new FileInputStream("C:/rajesh/raj_gmail.cer"), "tomcat".toCharArray());
               Enumeration e = ks.aliases();
               String keyAlias = null;
               String alias = null;
               while (e.hasMoreElements()) {
                    alias = (String) e.nextElement();
                    if (ks.isKeyEntry(alias)) {
                         keyAlias = alias;
               Certificate[] chain = ks.getCertificateChain(keyAlias);
               // create the generator for creating an smime/encrypted message
               SMIMEEnvelopedGenerator gen = new SMIMEEnvelopedGenerator();
               gen.addKeyTransRecipient((X509Certificate) chain[0]);
               Properties props = System.getProperties();
               try {
                    InputStream path = getServlet()
                              .getServletContext()
                              .getResourceAsStream(
                                        "/WEB-INF/classes/com/ips/ApplicationResources.properties");
                    props.load(path);
               } catch (Exception e1) {
                    System.out.println("Not able to load the properties file");
               props.put("mail.smtp.host", props.getProperty("mail.smtp.host"));
               Session session = Session.getDefaultInstance(props, null);
               MimeMessage msg = new MimeMessage(session);
               String body_heading = props
                         .getProperty("mail.request.message.body");
               body_heading = body_heading.replaceAll("[{]{1}[0]{1}[}]{1}",
                         Integer.toString(forms));
               msg.addRecipient(Message.RecipientType.TO, new InternetAddress(
                         props.getProperty("mail.to.address")));
               msg.setSubject(props.getProperty("mail.request.message.subject"));
               StringBuffer body = new StringBuffer();
               body.append(body_heading);
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.line1"));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.contact"));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.line2"));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.message.title")
                         + props.getProperty("mail.colon")
                         + String.format("%15s", title));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.message.fname")
                         + props.getProperty("mail.colon")
                         + String.format("%17s", firstname));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.message.lname")
                         + props.getProperty("mail.colon")
                         + String.format("%17s", lastname));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.message.address1")
                         + props.getProperty("mail.colon")
                         + String.format("%19s", address1));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.tab")
                         + props.getProperty("mail.colon")
                         + String.format("%20s", address2));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.tab")
                         + props.getProperty("mail.colon")
                         + String.format("%20s", town));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.tab")
                         + props.getProperty("mail.colon")
                         + String.format("%20s", county));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.message.pcode")
                         + props.getProperty("mail.colon")
                         + String.format("%11s", postcode));
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.message.email")
                         + props.getProperty("mail.colon")/*
                                                                  * +String.format("%33s",email
               body.append(props.getProperty("mail.linebreak")
                         + props.getProperty("mail.message.thanks"));
               MimeBodyPart bp1 = new MimeBodyPart();
               bp1.setText(body.toString());
               bp1 = gen.generate(bp1, SMIMEEnvelopedGenerator.RC2_CBC, "BC");
               Multipart multipart = new MimeMultipart();
               multipart.addBodyPart(bp1);
               msg.setContent(multipart);
               msg.saveChanges();
               Transport.send(msg);
          } catch (Exception e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          }if i print the original text im getting the content in my mail as
Please send me 1 application form pack(s)
Contact Details
Title: Mr
First name: rchanged
Last name: rchanged
Address: rchanged
: rchanged
: r
: r
Postcode: r4 4rr
Email:
Thank You
if encrypted is send
Please send me 1 application form pack(s) ------------------------------------------------------ Contact Details ------------------------------------------------------ Title: Mr First name: rchanged Last name: rchanged Address: rchanged : rchanged : r : r Postcode: r4 4rr Email: Thank You

Similar Messages

  • Standard Text doesnt contain correct format of Text in Recruitment

    Hi Experts,
    Please throw some light on this While performing Recruitment Activities : Prepare to Hire or Rejection I can see Standard Text doesnt contain correct format of Script  But record can be created. what would be the cause I googled it and searched in SDN forums I didnt find any I appreciate your quick reply
    Edited by: My SAP Cronies on Jan 13, 2012 8:54 PM

    Hi,
    Thanks for your input
    Please apply the  java patch SP 22 patch 50.
    Java Patch
    ===========
    Please Goto
    ->service.sap.com/swdc
    ->Download
    ->Entry by application group
    ->SAP NetWeaver and complementary products
    ->SAP NETWEAVER
    ->SAP NETWEAVER 7.0
    ->Entry by Component
    ->Click on BI java
    BI BASE SERVICES 7.00 (#OS independent)
    - BIBASES22P_50-10003477.SCA Patch for BI BASE SERVICES 7.00 SP22  50
    and
    BI WEB APPLICATIONS 7.00 (#OS independent)
    - BIWEBAPP22P_50-10003476.SCA Patch for BI WEB APPLICATIONS 7.00 SP22  50
    Please check.
    Thanks,
    venkat

  • CP 5.5 importing localized text from Word changes formatting in text boxes - Localization in general

    Hi All,
    I need to localize my English CP 5.5 project into multiple languages, up to 27 .
    To check that I will not run into issues I tried out on how it works.
    This is what I did:
    Make copy of the English project
    Renamed the project with extension of language, xyz_German.cptx
    Exported Project captions and text captions to word
    Open file looks it does NOT look good, the two columns OK but the formatting is NOT as in project - Bullets are missing etc.
    Nevertheless I changed some of the text in the 'Updated Text Caption Data' column
    Went back to the project and imported the Project captions...
    The project was updated
    And I saw the items reflected from the Word doc were I did not make the language changes.
    Now I am puzzled on how to proceed:
    Why do I not see formatting such as bullets in text boxes in the Word doc. - BUG? - Fix?
    Is Word the right translation media for so many languages?
    Is Export to XML a better choice?
    How can I ensure that formatting in different languages will be OK - Icannot read all of the languages such as Chinese (S)
    If Word would be the choice, how do I ensure that the translation company does not change the formatting?
    OK this for a start.
    I would highly appreciate input !!!!!
    Thanks.

    Hi Svendsen2,
    If "Import Project captions and closed captions" is not working for you,Mail me the word document. Please mail it to ashwin at adobe dot com. Do not zip it as it might not reach me.
    Thanks
    Ashwin Bharghav B

  • How to solve the problem related with inputing of the text into Wordpress from Firefox 9 and 9.0.1. The problem is that after inputing the formatting gets lost. Taking in account high popularity of Wordpress I suppose the problem is quite serious.

    How to solve the problem related with inputing of the text into Wordpress from Firefox 9 and 9.0.1.
    The problem is that after inputing the formatting gets lost.
    Taking in account high popularity of Wordpress I suppose the problem is quite serious.

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    * Clipboard not working -> [http://kb.mozillazine.org/Clipboard_not_working]
    * Rich Text Editing -> [http://kb.mozillazine.org/Rich_text_editing]
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    Check and tell if its working.
    Might not be related to your problem but some of your Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • Cannot decrypt RSA encrypted text : due to : input too large for RSA cipher

    Hi,
    I am in a fix trying to decrypt this RSA encrypted String ... plzz help
    I have the encrypted text as a String.
    This is what I do to decrypt it using the Private key
    - Determine the block size of the Cipher object
    - Get the array of bytes from the String
    - Find out how many block sized partitions I have in the array
    - Encrypt the exact block sized partitions using update() method
    - Ok, now its easy to find out how many bytes remain (using % operator)
    - If the remaining bytes is 0 then simply call the 'doFinal()'
    i.e. the one which returns an array of bytes and takes no args
    - If the remaining bytes is not zero then call the
    'doFinal(byte [] input, int offset, in inputLen)' method for the
    bytes which actually remained
    However, this doesnt work. This is making me go really crazy.
    Can anyone point out whats wrong ? Plzz
    Here is the (childish) code
    Cipher rsaDecipher = null;
    //The initialization stuff for rsaDecipher
    //The rsaDecipher Cipher is using 256 bit keys
    //I havent specified anything regarding padding
    //And, I am using BouncyCastle
    String encryptedString;
    // read in the string from the network
    // this string is encrypted using an RSA public key generated earlier
    // I have to decrypt this string using the corresponding Private key
    byte [] input = encryptedString.getBytes();
    int blockSize = rsaDecipher.getBlockSize();
    int outputSize = rsaDecipher.getOutputSize(blockSize);
    byte [] output = new byte[outputSize];
    int numBlockSizedPartitions = input.length / blockSize;
    int numRemainingBytes = input.length % blockSize;
    boolean hasRemainingBytes = false;
    if (numRemainingBytes > 0)
      hasRemainingBytes = true;
    int offset = 0;
    int inputLen = blockSize;
    StringBuffer buf = new StringBuffer();
    for (int i = 0; i < numBlockSizedPartitions; i++) {
      output = rsaDecipher.update(input, offset, blockSize);
      offset += blockSize;
      buf.append(new String(output));
    if (hasRemainingBytes) {
      //This is excatly where I get the "input too large for RSA cipher"
      //Which is suffixed with ArrayIndexOutofBounds
      output = rsaDecipher.doFinal(input,offset,numRemainingBytes);
    } else {
      output = rsaDecipher.doFinal();
    buf.append(new String(output));
    //After having reached till here, will it be wrong if I assumed that I
    //have the properly decrypted string ???

    Hi,
    I am in a fix trying to decrypt this RSA encrypted
    String ... plzz helpYou're already broken at this point.
    Repeat after me: ciphertext CANNOT be safely represented as a String. Strings have internal structure - if you hand ciphertext to the new String(byte[]) constructor, it will eat your ciphertext and leave you with garbage. Said garbage will fail to decrypt in a variety of puzzling fashions.
    If you want to transmit ciphertext as a String, you need to use something like Base64 to encode the raw bytes. Then, on the receiving side, you must Base64-DEcode back into bytes, and then decrypt the resulting byte[].
    Second - using RSA as a general-purpose cipher is a bad idea. Don't do that. It's slow (on the order of 100x slower than the slowest symmetric cipher). It has a HUGE block size (governed by the keysize). And it's subject to attack if used as a stream-cipher (IIRC - I can no longer find the reference for that, so take it with a grain of salt...) Standard practice is to use RSA only to encrypt a generated key for some symmetric algorithm (like, say, AES), and use that key as a session-key.
    At any rate - the code you posted is broken before you get to this line:byte [] input = encryptedString.getBytes();Go back to the encrypting and and make it stop treating your ciphertext as a String.
    Grant

  • How can I keep my text format after pasting a text with a different format?

    No matter when and where I start to write some text (whether it is a SImpleText, E-Mails, or anyother application's doc), if I have to cut and paste a text from a different source that is formatted differently than my original text (ie. the one I am already using ), once I have pasted the differently formatted text in my doc, the typeset changes while it continues to type with the same formatt used in the text I just pasted.
    How can I continue typing with the same text formatt used before pasting the new text, after pasting the new text, without having to change size, font style etc. Is there a short cut?
    What I have been doing to avoid this problem is: I usually type my entire text content (whether it is an E-Mail, or other doc) then, once I am done typing, I paste the text that was cut from a differently formatted document, so that my text remains with the same formatt in its integrity, while the pasted text stands out differently, but it is a bit complex doing that , because I not only have to remember to paste the other text when I am done typing (I run the risk of forgetting to paste the text I need to insert--which has happened already) or I keep struggling with my formatt change after the pasting of the new text, so my document text starts looking like the same text as the one which was just pasted.
    Thanks for your time reading this!

    KerrBr wrote:
    How can I continue typing with the same text formatt used before pasting the new text, after pasting the new text, without having to change size, font style etc. Is there a short cut?
    (1) First, let's make sure we're talking about the same thing. By "SImpleText, E-Mails" you mean TextEdit and Mail, right?
    (2) Some apps (TextEdit, Mail) use the text engine provided by Mac OS X. By and large, these apps will behave in a similar manner. Others (eg, MS Word) use their own text engine, and their behaviour can be quite different. For such an app you need to consult its manual.
    (3) In TextEdit, if you want the pasted text to adopt the current style, then use kurt188's tip.
    (4) However, if you may want the pasted text to retain its own attributes, while you continue to type in the previous style. I don't know of any shortcut or command that will achieve this. However, you can try to work around it.
    (4.1) TextEdit has the Copy Style (⌘⌥C) and Paste Style (⌘⌥V) commands. If you haven't yet used it, ⌘⌥V will insert the default style. So type, paste, ⌘⌥V, then continue typing. If you have used, it will insert whatever style was copied. You can, type, ⌘V, click somewhere before the pasted text, ⌘⌥C, click after the pasted text, ⌘⌥V, and continue typing.
    (4.2) Alternatively, type your text. Then type one more character, eg, "x". Then ←, ⌘V, ⇧→, and start typing. The new text should adopt "x"'s format. (This should work in Mail, too. I don't know, because IMHO e-mail should always be plain text.)

  • After checking voicemail I get a text message from 'unknown' with empty text bubble. How do I fix this?

    I just upgraded to iPhone 5-- after checking voicemail I get a text message from 'unknown' with empty text bubble. How do I fix this?

    I was one of the folks saing its on your email side but this explanation is a lot better and now I agree its obviously not your email thats the issue...
    try this
    1.  Login to your Verizon account.
    2.  Click on “Account” at the top and then “Change Features” from the bottom right.
    3.  Select the device you would like to remove the service from.
    4.  Then scroll down until you find “Contact Management” and click “Remove

  • Can I get music back after formating cpu?

    Can I get music back after formating cpu?

    If the music was RIP'd from CD, then the fastest way is to restore from your backup.
    Since it sounds like you did not have a backup, you will need to reRIP them from your CDs. Nothing else you can do.
    iTunes purchases you can redownload. Open iTunes, go to the store, click on Purchases on the right side under Quick links.
    Then tell the tech who formatted it for you without making a backup or making sure teat YOU made a backup that his rear end has a vacancy sign and your foot is looking for a place to rent.
    and you should make a backup right now of your computer and update teh backup after you RIP all the CDs.
    And make it a regualr practice, like weekly, depending on how much you want to lose.

  • Text gets jumbled up after publishing.

    After publishing my text gets illegable. Sentences are written over each other. Mabybe my texts are too long. Some pieces are ok but at the end of the text trouble starts.

    Perhaps check in iWeb that you don't have text boxes that are overlapping each other. This can be a cause. Also, if you know that you have a long piece of text to publish, just use one text box rather than a few. This makes more sense and it is less likely that any box will overlap.

  • Format bold text in field and putting some text on new line - Help!

    I am lost.  I found the rich text formating item to click.  But after that, I don't know what to do next.  I want to bold some characters and I want some reponses on separate lines as I asked previously.  As to spans and the commands - I have no programming experience.  I have just been using what George has given me.  It has worked well, but I just need the bold text in some of the field text to be printed and I need some items to be on separate lines.  But I have no idea where to put the information you are saying about spans and I do not know the script to use to bold text or to start text on new line.  Am I to insert it in the calculation box of the text box?  Sorry to be so lame, but I am void in programming skills.  Help!
    For example, here is the script.  In aISOreq{0], if I want to bold "Patter#1 Check:", where do I put the span and what script do I use to say to bold it.   Could you give me an example, please.  Also, if I want to put "a. Medications on weekend?" on one line and "b. Activities on weekends? Types of activities? Supervision? With who?" on the next line, where do I put the span and what script do I use to say to put on separate lines?  Could you give me an example for this also, please.  I have literally just used the scripts George has given me and they work great - but that is all I know how to do.  Thanks.
    (function () {
        // Set up an array to hold the individual paragraphs of text
        var aISOfreq= [];
        // Populate the array with paragraph text
       aISOfreq[0] = "Pattern #1: Multiple Isolations on Mon & Tues decreasing to Fri.  Pattern # 1 Check: a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With who?";
       aISOfreq[1] = "Pattern #2: Multiple Isolations on specific days.  Note days.  Pattern #2 Check:  a.  Different schedule on these days? Different adult? Block schedule? May need consistent schedule w/same adult.  b.  Are accommodations/modifications occurring? More group v. individual instruction? Does the student need warm-up drills or a specific job?  Does student need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?";
       aISOfreq[2] = "Pattern #3: Isolations are grouped in intervals.  Note interval.  Pattern #3 Check:  a.  Cyclic behavior?  Review assessment.  Need Mental Health referral for meds and/or therapy intervention?  b.  Medication: supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  c.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns with PO?";
      aISOfreq[3] = "Patterns #1 & #2: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Multiple Isolations on specific days.  Note days.  Pattern #1 Check:  a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With whom?  Pattern #2 Check:  a. Different schedule on specific days? Different Adult? Block schedule? May need consistent schedule with same adult.  b. Accommodations/modifications occurring? More group v. individual instruction? Need warm-up drills or specific job?  Need a specific lesson routine?  c. Previous night's activities? Need calming activities before bed? Need earlier bedtime? Need additional evening structure? ";
       aISOfreq[4] = "Patterns #1 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Isolations grouped in intervals.  Note intervals.  Pattern #1 Check:  a. Medications on weekend?  b. Activities on weekend? Types of activities?  Supervision? With whom?   Pattern #3 Check:  a. Cyclic behavior?  Review assessment.  Need Mental Health referral for meds and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need med check with physician?  Share concerns with physician?  c.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?"
      aISOfreq[5] = "Patterns #2 & #3: Multiple Isolations on a specific day AND Isolations grouped in intervals.  Note days & intervals.  Pattern #2 Check:  a.  Different schedule? Different Adult? Block schedule? May need consistent schedule w/same adult.  b.  Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job?  Need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?  Pattern #3 Check:  a. Cyclic behavior? Review assessment.  Need Mental Health referral for medication and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  c. History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?";
       aISOfreq[6] = "Patterns #1, #2 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Friday, Multiple Isolations on specific days AND Isolations grouped in intervals.  Note days and intervals.  Pattern #1 Check: a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With whom?   Pattern #2 Check:  a. Different schedule? Adult?  Block schedule?  May need consistent schedule w/same adult.  b.  Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job?  Need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?  Pattern #3 Check:  a. Cyclic behavior? Review assessment.  Need Mental Health referral for medication and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  h.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?";
       aISOfreq[7] = "No Pattern";
         // Get the selected item, which is the export value of the selected combo box item
        var item = getField("ISO Frequency Pattern").value;
        // Display the text corresponding to the selected item in the text field
        event.value = aISOfreq[item];

    Look at the reference of the richValue property of the Field object. It contains a couple of examples of how it should be done. Also read the reference of the Span object.

  • Outlook 2003 Suddenly cutting off email text after send

    Hi everyone,
    Some of my Windows 7 Users are experiencing a new issue with Outlook 2003 on their Windows 7 Pro computers.  All systems affected are 64-bit.  Most of our users are on Office 2003 and utilize Outlook with an in-house Exchange Server.
    Just recently, in the last week or so, a few users have complained that after sending an email, a large portion of their message gets cut off.  I've seen examples where emails are cut off mid-sentence.  I suspect that a Windows 7 update maybe the
    cause here, but I haven't been able to figure it out as of yet.
    Does anyone know of any recent issues with any updates that might cause this?  I suspect that it may have something to do with the IE 11 release and that some of our machines are updating to this version (which Outlook uses of course) and this maybe
    the cause.  This is the path I am using to troubleshoot, but wanted to see if anyone else with old software had experienced these issues?
    Thanks!

    32/64 OS Windows 7 with Outlook (office) standard edition 2003 - email set as HTML format and Word OFF as editor ++ IE 11 causes the issue here - cuts off the text AFTER the save on sending.
    Reverting users affected to IE 10 seems to have fixed the issue here and using GP to lock out any options in IE to allow users to upgrade it and stopping any WSUS \ SCCM updates for IE 11 security to prevent it coming back down.
    I guess we are all to blame as much as M$ - Outlook 2003 is over 10 years old and IE integration with HTML editor in Outlook was what we did in 2003 days - if we upgrade IE then its not a great surprise to find something breaks that relies on it.
    I would be curious to know if this issue is affecting any of our Outlook 2013 \ 2010 friends with HTML formatting and using IE11 on Win 7 or 8.
    I have licenses for our users to roll up from 2003 but its such a monster job I have hidden from it for..well 10 years due to training, macro and style manamgement issues and the shear pain I know will come out from users saying, "wehere my wee icon for
    ..." . BUT '03 is nearly end of life folks and although new does not = nirvana ((in fact I can't wait to find the many pains of 2013 Word and Outlook)) I suspect M$ will not be in a huge hurry to write a fix for a product that they are canning for support
    soon - so I guess we either roll down to IE10 or roll up to 2013 Outlook.
    Robert Crichton

  • Get information from an array saved into a text file

    I am trying to get information from an array saved as a text file to extract the information to build an string. This string will go out from the serial port to a device which will listen this message and it will answer the question. All the information sended sequencially it has to be obtained from that array. Every row contain one instruction and this has to be sended one after one.
    Could you tell me if is possible to make this driver? And if you have a similar driver, Where can I get it from?

    The VIs that I would suggest using are found in the String Function Pallet:
    Spreadsheet String To Array
    Array To Spreadsheet String
    The delimiter should be the termination character. These VIs will adapt to a string array.
    For the Spreadsheet String To Array wire an empty string array and use %s as the format. The delimiter should be the termination character of the text file, most likely a end of line (\r\n).
    For the Array To Spreadsheet String the delimiter should be the termination required for your serial device.
    Using a combination of these two VIs should provide you the functions required to make the driver.

  • Bullets and Numbering "Text After" attribute

    Hi Everyone,
    I need to grab "Text After" attribute of and existing bullet list in InDesign document and change it to my text. I think, I need to get access to "kBNBulletTextAfterBoss", but I don't know which boss agregates it.
    Thanks

    I've found it a much better practice, especially in heavily numbered documents, to look for a paragraph style that can be set to start at zero. I usually apply it to any headings or subheadings where the numbering below remains consistent. But that's just my experience.
    You can also right click and restrat or continue numbering.

  • Help needed with referencing single Excel cells and formatting resulting text

    In InDesign CS5 I am putting together a 20pp catalogue of about 200 products. The plan is to have the product information, SKU code, quantity etc fixed, but have the prices (there are two i.e. pack price and individual price) being linked to an Excel spreadsheet. This is so that the prices can be updated in the Excel file and the InDesign file will pull the new prices through. In case you are wondering why I don't pull the whole set of information through, this is because there are a lot of copywriting changes done to the information once it's in InDesign - it's only going to be the prices that will be updated.
    I am planning on having two single cell tables in their own text frame, duly formatted with cell style, table style and paragraph style for the two price variables. This I am then going to have to repeat 200 times making sure I link to the next row down in Excel. This is going to be a hideous task but I see know way of modifying the cell in InDesign to point it to the next row in Excel. That's my first problem.
    My second problem is this. In the Excel sheet, the prices are formatted as UK currency and are therefore like this...
    £2.00
    £0.40
    £1.43
    £9.99
    £0.99
    £0.09
    What I will require is once I import that data (and refresh the data via a newly saved Excel file) is that the prices end up like this...
    £2.00
    40p
    £1.43
    £9.99
    99p
    9p
    So if the value is lower than £1.00 it needs a trailing 'p' added  and the leading zero and '£' sign stripped off. If the value is lower than £0.10 it also needs the zero after the decimal point stripping off.
    Then formatting wise, the '£' sign needs to be superscripted and the same for the 'p'. This I am assuming could be done via GREP?
    In summary, can anyone help with the first task of referecing the Excel cells on a cell by cell basis, given that it is the same cell column each time, but the next row down, and also point me in the right direction of the price formattting issues.
    Any help will be gratefully received.

    I would do this:
    Create on line with the formatting.
    Export as InDesign tagged text (TXT)
    Read out these tags
    In Excel exists a function to connect text from several cells and predfined text, there connect the content from cells with the paragraph styling tags. Do it in a seperate sheet. (Better would be to use a database like Access, there you can link your Excel sheet).
    Export this sheet as txt file
    Place this sheet as tagged text (there is an option in one of the sialog boxes).
    In preferences  < file handling you can specify that Tablecalculation Sheets and text is not embedded but linked, turn it on.

  • Why is iMessage taking my incoming emails and then not making them available for my PC to get?  Why can I not send a text msg with photos when iMessage is turned off (but MMS is still on).

    Apple is great!
    Why is iMessage taking my incoming emails and then not making them available for my PC to get?  Why can I not send a text msg with photos when iMessage is turned off (but MMS is still on).
    I compose an iMessage with the destination as my email address and I attach 2 photos I want on my PC.  I send them several times from my iPhone 5C but they never arrive. I look at my ipad later and realize that it's iMessage app is getting ( and swallowing) these emails. I then turn the ipad off.  Still can't get the photos through because iphone is now getting them on it's iMessage.  I turn off the iMessage feature and try to send photos from text msging.  Phone tells me it can't send photos unless iMessage it turned on.  What happened to regular MMS text messaging?  I go and try to send photos as an email attachment and see that there is no option to attach from the stupid email program.  I look up online to learn about the brave new world of apple attachments and send them.
    Why is iMessage taking my incoming emails and then not making them available for my PC to get?
    The email program on my iphone is not configured to remove messages from the server.
    If iMessage is turned off I don't have the issue.
    Why can I not send a text msg with photos when iMessage is turned off (but MMS is still on).

    Did not work. I've selected iMessage to ON and left it. After a few hours I recieved a message "activation unsuccessful. Turn on iMessage to try again". This has been going on for the past 3 days.

Maybe you are looking for

  • Only 3 hours on battery doing nothing

    hi all. i am getting ready to take the 2009 MBP which I have had for a year and a half in to the genius bar and finally measured battery life at 3 hours doing absolutely nothing. This means I am down to about 2 or 2 1/2 hours when working on it. i ha

  • OLEDB Dataconnection and XML Schema

    Hi, I create a form with fields binding with a OLEDB dataconnection. It's work, I can request my database and store my data. I want to be able to can access these field in a process (with workbench ES). If I bind fields with a xml schema I can access

  • Prefer 802.11a over 802.11g within SSID - Is it possible?

    Currently have a corporate SSID advertised enabling clients to connect using either A or G. Ideally I'd like clients too connect using A if they're able, and if not connect on G. I think I've read on these forums this is possible but requires the WLC

  • Audacious playlist percent sign

    Hi, I'm getting percent signs followed by a number in the playlist instead of some characters as & or , . They are the same encodings used in URLs (%20 for space, %26 for &, etc). Viewing track details I get: 05%20-%20Forty%20Six%20%26%202.mp3 for 05

  • BIPublisher Security Configuration error no input xdo file path is specifie

    Hi All, When i set Security model to oracle database got an error as following: no input xdo file path is specified and the folder catalog empty. Thanks,