I need an VB 6.0 application that creates a pdf from a word document.? The pdf will be created in folder without any interaction from the user. Use whatever folder name or word doc name you like.
The program has to determine and? create a global flag = true? when the pdf file has been created. Please indicate your solution and cost.
? My preference would be 995PDF but I would be willing to consider all suggestions.
Here is some code I downloaded from the 995PDF website.<[login to view URL]>. You can use it or develope you own.
1. Before printing :
GetPrivateProfileString(TEXT("Parameters"),TEXT("ProcessPDF"), "", szprocesspdf, sizeof(szprocesspdf), GetPdf995Path() + "pdf995\\res\\[login to view URL]");
szDefaultProcessPDF = szprocesspdf;
WritePrivateProfileString(TEXT("Parameters"),TEXT("ProcessPDF"), applicationthatdeletesflagfilethatyousupply, GetPdf995Path() + "pdf995\\res\\[login to view URL]");
HANDLE hndFlag = CreateFile(GetPdf995Path() + "pdf995\\flag", GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); CloseHandle(hndFlag);
2. Print to pdf995. When pdf995 created the pdf, it will call applicationthatdeletesflagfilethatyousupply. That will delete the flag file. Wait as follows until the pdf is complete:
CFileStatus status;
CString szRoot = GetPdf995Path();
while(CFile::GetStatus( szRoot + "pdf995\\flag", status ))
{
Sleep(100);
}
Sleep(100);
WritePrivateProfileString(TEXT("Parameters"),TEXT("ProcessPDF"), szDefaultProcessPDF, GetPdf995Path() + "pdf995\\res\\[login to view URL]");
3. This is used in the above example:
CString GetPdf995Path()
{
HKEY hkey1;
int rc;
CString szpath = "c:\\";
CString KEYz = "Software\\Pdf995";
if ((rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE, KEYz, 0,
KEY_READ, &hkey1)) == ERROR_SUCCESS)
{
DWORD cbData;
DWORD type1 = REG_DWORD;
//dwlen = 4;
cbData = 10000;
type1 = REG_SZ;
BYTE *buf = new BYTE[cbData];
memset (buf, NULL, cbData);
if (!RegQueryValueEx(hkey1, "Path", NULL, &type1,
(LPBYTE)buf, &cbData) == ERROR_SUCCESS)
{
delete [] buf;
return szpath;
}
szpath = buf;
delete [] buf;
}
return szpath;
}
## Deliverables
* * *This broadcast message was sent to all bidders on Tuesday Aug 11, 2009 8:08:48 AM:
HI Everyone thanx for bidding. I have a few answers to questions. - Your project should be able to create PDFs with other software such as Crystal reports, Excel. I am using Word because it is most popular. - "Without interaction" means the program should be able to print any document without the user having to select a folder or pdf filename. I am looking for an executable file. How will the creation of the document be triggered? User, etc ?? Will the name of the word doc be the same each time or take user input? Yes it will be the same each time but can we have the pdf file a different name based on a variable.
* * *This broadcast message was sent to all bidders on Tuesday Aug 11, 2009 8:15:43 AM:
Hi All here is how the program should work 1. Browse which allows you to select the word file. 2. When file is selected show word file in a text box. 3. Text box so user can enter the name of pdf file to be created. Assume pdf is created in C: root folder. 4. Command button that when clicked converts word doc to pdf. Assume pdf is created in C: root folder. 5. When pdf file has been completely created a msgbox that says "PDF file created" The program must check that the pdf file has been completely processed and completed
* * *This broadcast message was sent to all bidders on Wednesday Sep 9, 2009 2:51:13 PM:
Hi to all coders who have bid on this estimate. I have been waiting for info form my client. He says that he now wants to create a PDF file from crytal reports. We will be using Crystal Reports 6.0 and Visaul Basic 6.0. So th eproject is now to creat a pdf from Crystal Reports 6.0 using a VB 6.0 application. PLease make any adjustments to your proposal.