|
Hello, the codegurus around the world.;)
I guess that you misunderstand how you get the vaule with VARIANT type.
Generally speaking, we have some helper function convering from VARIANT to
string.
Check DAO sample in MSDN to find the helper function.
Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper
-Masaaki Onishi-
|
|
|
|
|
Masaaki Onishi wrote:
Hello, the codegurus around the world
Hmmm...you mean CPians!
|
|
|
|
|
I'm writing an add-in for VC++ and i need to obtain the currently existing text in the editor (not selected) at a specified coordinate (line, column, size).
Do you know the easiest way?
rechi
|
|
|
|
|
hi all, do you know how to get one cell of Excel file?
I need to format exiting excel file such as pagesetup, margins, and set the print area.
sometime, the file contains 300 pages but 50 pages are empty. So how can i get rid of those 50 empty pages programmatically?
thanks.
|
|
|
|
|
You'll probably have to use Automation. Check the COMEXCEL sample (comes with VC++).
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
yes.. i'm using automation.. I got everything i needed except for deleting those empty pages...
I don't want to print all the empty pagess while i print the file. Normally (not programmatically) I just have to select the area that i want to be printed, then go to next area which contains information, select it again and right click add to print area.. but how can i do the same action promatically???
|
|
|
|
|
Well, try to record the VBA macro which does the thing you want. Conversion to VC should be quite easy - it should give you a good start.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
huuu... but there is no way (that i know of) to write the macro that delete or get those empty 50 pages out from the 300 pages.
Is it clear to you? I have exiting excel file. I open with excel.application. get its worksheets, then sheets, and then sheet. for every single sheet I format it like its font size, page margins, set landscape, set print quality 300 dpi.. and so on.. then I printpreview, in programmatical way. The problem is when you print preview, you will see page number 34 is empty, 55 is empty, 78 - 90 is emtpy, 276-280 is emtpy. nothing to be printed, it's blank page.
How can i get rid off those empty pages???? Please help me.
|
|
|
|
|
Win wrote:
How can i get rid off those empty pages????
By deleting the rows? I can't give you any detailed info - it's been a while (about 3 years) since I've been working with automation.
Try to achieve your goal in VBA first. Start macro recording, select and delete row of cells - this should give you a way to remove empty spaces.
Tomasz Sowinski -- http://www.shooltz.com
What is "scratch" and why can everything be made from it?
|
|
|
|
|
this is a very good suggestion.. I'll try that. I'll tried to get the book and tried it. by the way, How can I get the first cell and the last cell? like first cell will be A1 and last cell will be something. is it in string form or in te number? if it's in number form so how to convert the number to string A1 , A2, C1???
So i can use PageSetup::SetPrintArea("A1:K700);? or
get the range of the sheet, sheet::range(COleVariant("A1"),COleVariant("C4"))
|
|
|
|
|
My project is crashing when I terminate it. My destructor seems to execute okay in the debugger:
~DbClass()
{
Close();
if(m_pConn)
{
m_pConn.Release();
m_pConn = NULL;
m_strConnection = _T("");
}
::CoUninitialize();
}
What should I be looking at to determine why its crashing?
Thanks,
ns
P.S. this only happens if I dont open the database . If I open it and then terminate, everything is fine.
|
|
|
|
|
what is your application?? dialog based application?
|
|
|
|
|
Nope. My app is an MFC MDI.
Thanks for helping. Why -- do dialog based apps do this often?
ns
|
|
|
|
|
Do you initialize m_pConn to NULL on the beginning of the application?
rechi
|
|
|
|
|
How to load our application before loading logon screen in Win98..
|
|
|
|
|
How to load our application before loading logon screen in Win98..
|
|
|
|
|
You can't. You need NT and services to do that.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
|
|
|
|
|
I think you can if you put it in Autoexec.bat.
Even if you win the rat race, you're still a rat.
|
|
|
|
|
Have you tried to put path to its executable to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
I am not sure about it, since I have not seen W98 for couple of years
Martin
--------------------------------------------
C'mon we all know computers are experimental devices and should only be used for playing games.
Using them for alternative stuff like business, is clearly not using them for what they are intended.
Colin Davies
|
|
|
|
|
That works, but is still after the logo.
|
|
|
|
|
Thanks, my target platform is NT, so I have almost no idea how some features from other windows system work.
Martin
--------------------------------------------
C'mon we all know computers are experimental devices and should only be used for playing games.
Using them for alternative stuff like business, is clearly not using them for what they are intended.
Colin Davies
|
|
|
|
|
Hi,
Here goes the first question: Is it possible to place a button on the status bar?
The second question follows on from the first: If it is, how does one go about this?
Thanks in advance
Regards
Ruca
|
|
|
|
|
Create a button with the statusbar as the parent window.
/Magnus
- A dog who attends a flea circus most likely will steal the whole show
|
|
|
|
|
|