|
|
can u told me any simple example for this
Regard's
Kaushik
|
|
|
|
|
Currently I do not have any sample code with me. Google CPrintDialog, you can get code samples.
|
|
|
|
|
|
|
I have write code for this and I can easily get printer also
but when i fire print command a blank page come
I am understand where i make wrong
Regard's
Kaushik
|
|
|
|
|
Does your problem solve now or not?
|
|
|
|
|
My problem is not solved now
i have write code for printing report
But it print a blank page .
is any simple and easy way to print report in Modal dialog based form of MFC
Regard's
Kaushik
|
|
|
|
|
Y_Kaushik wrote: is any simple and easy way to print report in Modal dialog based form of MFC
have you got the printer handle before writing on it.. actually you have to write every thing on PrinterDc before firing command!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Yeah here a simple way to write with StartDoc/EndDoc and if you dont know how to use of these functions MSDN has a good and helpful and simple example of them.
|
|
|
|
|
WhiteSky wrote: Does your problem solve now or not?
your HTML coding getting good day by day
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Thank you,how are you?
In fact its dynamic if you see my reply for first time its line but if close my message and open again you see its dash line.;P
|
|
|
|
|
plz give me a code i realy need it plz reply
|
|
|
|
|
This is not a trivial question. Such an answer would span several pages. What exactly are you needing help with? Be specific. Until you can successfully form an SQL statement to retrieve the pertinent data from your database, don't bother with printing details.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How to get details from User Acoount Control?Especially about the privileges guven to the particular user through coding?
Thanks
|
|
|
|
|
Can you please clear your question; what exactly you want and what kind of user account control?? Is it a sort of database and do you want to retrive data from it based on username or any identity of user??
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
We will give Admin right,limited access etc.That details i want.
|
|
|
|
|
|
look at api starting with Net*
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Hello everyone,
Two questions about COM tlb file,
1. I am wondering what are the content of COM tlb file? I think it should be something like import library file (.lib) for a DLL which contains address and signature of exported functions.
2. Why for C# COM client, tlb file is not needed? Why for C/C++ (native) client, tlb file is needed?
thanks in advance,
George
|
|
|
|
|
George_George wrote: 1. I am wondering what are the content of COM tlb file? I think it should be something like import library file (.lib) for a DLL which contains address and signature of exported functions.
you are somewhat right, yes it contain the decalartion of interface and related constant and enum. which vc++ compiler read to generate equivalent tlb and tlh files.
George_George wrote: Why for C# COM client, tlb file is not needed? Why for C/C++ (native) client, tlb file is needed?
it not necessary to have tlb file even in vc++(native) to use com component, you can directly import com dll or add Header File geenrated by actual com workspace .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Thanks ThatsAlok,
ThatsAlok wrote: it not necessary to have tlb file even in vc++(native) to use com component, you can directly import com dll or add Header File geenrated by actual com workspace .
If I have a C++ client and a C# COM component. Without a tlb file, how could the C++ client utilizing the C# COM component? I do not think it could be achieved by using header file, since C# does not have any header files.
For managed C++ client, we could import DLL directly, but for unmanaged C++ client, how could we utilize C# COM interfaces/classes without a tlb?
regards,
George
|
|
|
|
|
George_George wrote: For managed C++ client, we could import DLL directly, but for unmanaged C++ client, how could we utilize C# COM interfaces/classes without a tlb?
since c# com component deploy managed stuff, i believe might be you are not able to use it in c++ native.. but by the way... what C# dll is COM Server Exe or DLL
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Thanks ThatsAlok,
I have tested that we could invoke C# (COM) function from C++ unmanaged code.
regards,
George
|
|
|
|
|
George_George wrote: I have tested that we could invoke C# (COM) function from C++ unmanaged code.
I don't have much Experience in InterOpr!, but just want know what C~ compiler is producing, is it dll or exe
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|