|
Thanks a lot for replying so soon to my problem. Since i am new i was wondering what will happen to my problem.
As you asked...
1. I will be printing on a dot matrix printer.
2. regarding the format, so i am unable to tell since i am not getting what you exactly mean by it ?
Please do specify so that i can clear the picture.
Thanks...
|
|
|
|
|
Hi,
One simplest way is to use word automation. You can move the data into a word document programatically, and do the printing. If needed we can give the generated output to the user itself b4 printing.
Sujan
|
|
|
|
|
Hi,
Thanks for your reply...
I had the same thing in my mind, but do not know how to do this thing programatically. can you please help me out how to code this word automation. All what is to be done will be that some values have to be exported to the word document where our format of the printout will be ready. And from there we will have to fire the print out somehow.
I know the procedure, but how to code all this is not known by me. Please help me out.
Thanks,
Pankaj
|
|
|
|
|
|
and what do you do if office (or even Word) is not installed ?
TOXCCT >>> GEII power
|
|
|
|
|
The idea of having office or word and then making the print outs was one way for the solution to the problem. What you have said is very true, and shouldbe thought over.
Well, as far as i am concerned, i am not aware of it at all. If you can help me out regarding it then please let me know.
Regards,
Pankaj
|
|
|
|
|
in fact, i was waiting for the answer bacause i'm curious of it but... novice... i'm sorry but i can't help on this.
TOXCCT >>> GEII power
|
|
|
|
|
Hi toxcct,
if office is not there means, then we must have to provide another method like creating a text file, placing the data within that, and print.
Sujan
|
|
|
|
|
ok, so i assume you know how to insert advanced formating operations in pure txt files, or better, pictures...
hummm, i don't really think you go the right way.
TOXCCT >>> GEII power
|
|
|
|
|
|
2 posts before, i said : this[^]
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
If I understand correctly the print out is not considered to be entire documents?
Doesn't matter consider following:
Maybe you can choose RTF format for that. The RichEdit Control supports that format, you can print it out from code and Word can open it when you write it to file.
We use it in our product here (@ my job) all the time...
It's also a little easier than automation.
Look on MSDN about rtf codes, printing rtf and the RichEdit controls.
Hope this helps!!
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
I used MFC and then I put just three line codes in OnDraw Handler(?)..
void CImgViewerView::OnDraw(CDC* pDC)
{
CImgViewerDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
// from here
Graphics g(pDC->GetSafeHdc());
Image img(L"test.jpg");
g.DrawImage(&img, 10,10);
}
I compiled and linked.. it was OK.. but..
This cause runtime error in Image img(L"test.jpg");
I can't figure it out why it happens..
I also added startup and shutdown code..
why?
I'm with VS.net 2003
|
|
|
|
|
bektek wrote:
This cause runtime error in Image img(L"test.jpg");
Does the file exist in the current directory?
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
<italic>Work hard and a bit of luck is the key to success.
You don`t need to be genius, to be rich.
|
|
|
|
|
I have VIsual C++ ANd i Was Wondering could i write openGL and driectX in c++ or other library in c++ thank
|
|
|
|
|
Gee, did you do any research of your own before asking this question ?
Of course you can. You just need to install the SDK.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Can i ask a C++ question on the Visual C++ mesage board on CP ?
TOXCCT >>> GEII power
|
|
|
|
|
No, this forum is only for Visual C++
|
|
|
|
|
yes, untill you have a C++ messageboard on CP
There is no spoon.
mail
|
|
|
|
|
hum, are we only playing with word, or just talking on a "non C++ message board" there ?
TOXCCT >>> GEII power
|
|
|
|
|
|
Is it possible to (programmatically) make a computer's system clock (time) go a set amount faster, like making the computer's clock move 1100ms every real second so that for instance, if I started speeding it up at 10:00:00, the computer's clock reads 10:00:11 while my (correct) watch reads 10:00:10?
|
|
|
|
|
Why would you want to do such a thing ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
More precisely, it is to affect Windows timers, so that timer events happen faster than they normally would. Beyond that, I don't know; I'm researching this for someone else, and that's all the info they've given me.
|
|
|
|