Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6776231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:00:11+00:00 2026-05-26T16:00:11+00:00

I have many out.write lines of code (515 in total) that build an excel.xml

  • 0

I have many out.write lines of code (515 in total) that build an excel.xml file. I now need to be able to build a out.write line of code to include values from a string. Here is an out.write code line

out.write ("    <Cell ss:StyleID=\"s44\"><Data ss:Type=\"Number\">25</Data><NamedCell ss:Name=\"Print_Area\"/></Cell>\r\n");

and I would like to replace the 25 with the string value square_area_feet_result

double square_area_feet = square_area_inches / sqin_to_sqft;
String square_area_feet_result = String.format("%.4f", square_area_feet);
m1_sa_ft.setText(square_area_feet_result);

the out.write seems quite literal so maybe I have to first build everything after out.write?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:00:12+00:00Added an answer on May 26, 2026 at 4:00 pm

    if i get it well, then the answer may be this :

    out.write ("    <Cell ss:StyleID=\"s44\"><Data ss:Type=\"Number\">" + square_area_feet_result + "</Data><NamedCell ss:Name=\"Print_Area\"/></Cell>\r\n");
    

    Regards,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have many jobs that have a step to send 1 specific email out
I have a bunch of log files. I need to find out how many
Recently, many programmers and that includes me, have taken the X out of AJAX,
I've got a text file that arrives at my application as many lines of
Am tearing my hair out here. Have read many examples which describe how to
I imagine there are many of you out there who have developed an application
I have a table with many rows, is there any way to find out
I have many small files containing code fragments, pseudo-code algorithms, classes, templates, SQL-samples, etc.,
I have a program in which each thread reads in files many lines at
So I have this code in python that writes some values to a Dictionary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.