How to automatically generate PDFs and RAR/ZIP from a VB6 application

Posted on 2006-04-29
Last Modified: 2010-04-17
HI Experts,
I need generate PDF and ZIP or RAR files automatically from our application.
Without making the user answer the tipical windows for this features.

I mean, this files must be totally generated by the application.

How can I do this?

Question by:rguillermo
    LVL 14

    Accepted Solution

    LVL 12

    Expert Comment

    by:Mortaza Doulaty
    The easiest way to produce PDF files is to use Adobe AcrobatWriter printer driver.
    It installa a virtual printer so that you can set the default printer to that and work with it as a regular printer.
    You can use Printer.Print and ... to add text and images to your PDF file, once you have completed your printing proccess, by call Printer.EndDoc, it will begin to write to the PDF file.

    it was easy, isn't it?
    And about Zip file, as Milan said, you can use these links:

    and this is the link to download a sample project:
    LVL 12

    Expert Comment

    by:Mortaza Doulaty
    The last link was a free DLL with its source code

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now