For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > February 2005 > creating a pdf file automatically from vb6









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author creating a pdf file automatically from vb6
Jon in Canby Or.

2005-02-28, 3:55 pm

I know there are products out there that create a pdf file by using a print
driver, but they all (to my limited knowledge) seem to require a user to
choose the file name and folder that the file is going to. I have a vb6
application that creates an html file and I want it to convert that file to a
pdf file without the user being involved. Does anybody have a clue how to do
that and what products I'd need?

Cheers,
Jon
Veign

2005-02-28, 3:55 pm

You could try PDFCreator as www.sourceforge.net..

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--

"Jon in Canby Or." <JoninCanbyOr@discussions.microsoft.com> wrote in message
news:0BF59B66-2FD5-4DE4-8BA6-D3C126B70E1D@microsoft.com...
> I know there are products out there that create a pdf file by using a

print
> driver, but they all (to my limited knowledge) seem to require a user to
> choose the file name and folder that the file is going to. I have a vb6
> application that creates an html file and I want it to convert that file

to a
> pdf file without the user being involved. Does anybody have a clue how to

do
> that and what products I'd need?
>
> Cheers,
> Jon



Jon in Canby Or.

2005-02-28, 8:55 pm

Thanks. I've downloaded and am trying PDFCreator. I've set it up to do the
autosave so it doesn't prompt the user for a filename to save it under but
I'm struggling to get it to actually print the htm file I created. I have set
PDFCreator to be the default printer. It seems to me that I need to use the
shell command as in: Shell "print C:\file.htm" , but when I do this it tries
to print it under a printer that was previously set to be the default.

There has to be an easier and more reliable way to do this. Any clues?

Cheers,
Jon

"Veign" wrote:

> You could try PDFCreator as www.sourceforge.net..
>
> --
> Chris Hanscom - Microsoft MVP (VB)
> Veign's Resource Center
> http://www.veign.com/vrc_main.asp
> --
>
> "Jon in Canby Or." <JoninCanbyOr@discussions.microsoft.com> wrote in message
> news:0BF59B66-2FD5-4DE4-8BA6-D3C126B70E1D@microsoft.com...
> print
> to a
> do
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com