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 7188343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:03:44+00:00 2026-05-28T19:03:44+00:00

I am new to Qt . I have written a program to read and

  • 0

I am new to Qt . I have written a program to read and write datas from excel file.

    void Excel::Color(const QString& Sheet_Name,const QString& cell,const QString& color_Name) { 
  QAxObject* Worksheet = activeWorkbook->querySubObject("WorkSheets(const QString&)",Sheet_Name); 
  QAxObject* Cell_Range = Worksheet->querySubObject("Range(const QString&)",cell ); 
} 

Now i need to apply color to particular cell. Is there any posibility to achieve this ?

  • 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-28T19:03:45+00:00Added an answer on May 28, 2026 at 7:03 pm

    As a delphi enthusiast, I did office automation in the past. I don’t feel very comfortable with Qt but I have Qt Creator 2.4.0 installed on my box with the latest Qt framework: It’s very promising.

    Here is a VBA snippet more relevant to Cell coloring,

    Cells(1, “D”).Interior.Color = RGB(0, 255, 255)
    Cells(1, “D”).Borders.Weight = xlThick
    Cells(1, “D”).Borders.Color = RGB(0, 0, 255)
    

    You can also head to this interesting thread related to harnessing Excel file with QAxWidget.

    Edit:

    The OP finally end up founding an appropriate Qt solution as follows:

    QAxObject* Interior = currentCell->querySubObject("Interior"); 
    Interior->setProperty("ColorIndex",Index_val); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a program in Java to read in a text file of
I have written a program which reads input from csv file and its working
I have written a short Scala program to read a large file, process it
I have written a new custom component derived from TLabel. The component adds some
I have a program that loads a file (anywhere from 10MB to 5GB) a
I have written a program that constantly reads from the Bluetooth via SPP and
I have written a dangerous program in C++ that jumps back and forth from
I have a requirement to send data from native program written in C through
Summary: I have a struct that is read/written to file. This struct changes frequently,
I'm new to OpenGL. I have written a programm before getting to know OpenGL

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.