Hi All, I have to write a code in VC++ , to convert *.ppt file to *.jpg file,can you tell me how can i do it?????
-
Kindly help me or give me a clue , how can i convert series of ppt slides in abc.ppt to n-number of jpg files. one slide=one jpg file?? programatically using vc++ thanks in advance
fdsfdsf
-
Kindly help me or give me a clue , how can i convert series of ppt slides in abc.ppt to n-number of jpg files. one slide=one jpg file?? programatically using vc++ thanks in advance
fdsfdsf
For this you have to use the office automation i.e using the some of the tlb files of office u can use the functions that the software provides. here if u see the power point provides a tool called as "Save As" which gives u the facility to convert the .ppt into the jpg file just u hav to u that tool and then u r on the way
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
-
Kindly help me or give me a clue , how can i convert series of ppt slides in abc.ppt to n-number of jpg files. one slide=one jpg file?? programatically using vc++ thanks in advance
fdsfdsf
Saving a PPT file as a JPG file will go something like:
CString strFileName = "abc.ppt";
_Application app;
_Presentation pres;
COleVariant vtFalse((short) FALSE),
vtOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR),
vtJpg((short) 17);if (app.CreateDispatch("PowerPoint.Application") == TRUE)
{
pres = presentations.Open(COleVariant(strFileName), vtOptional, vtOptional, vtOptional);strFileName.Replace(".ppt", ".jpg"); pres.SaveAs(COleVariant(strFileName), vtJpg, vtOptional); docs.Close(vtFalse, vtOptional, vtOptional); app.Quit(vtOptional, vtOptional, vtOptional);
}
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Saving a PPT file as a JPG file will go something like:
CString strFileName = "abc.ppt";
_Application app;
_Presentation pres;
COleVariant vtFalse((short) FALSE),
vtOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR),
vtJpg((short) 17);if (app.CreateDispatch("PowerPoint.Application") == TRUE)
{
pres = presentations.Open(COleVariant(strFileName), vtOptional, vtOptional, vtOptional);strFileName.Replace(".ppt", ".jpg"); pres.SaveAs(COleVariant(strFileName), vtJpg, vtOptional); docs.Close(vtFalse, vtOptional, vtOptional); app.Quit(vtOptional, vtOptional, vtOptional);
}
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Hello DavidCrow! can you give a correct codes Thanks
fdsfdsf
-
Hello DavidCrow! can you give a correct codes Thanks
fdsfdsf
anchorwang wrote:
can you give a correct codes
I gave you 95% of what it would take to solve your problem. Surely you can come up with the balance. :rolleyes:
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne