Solved

Print to a file

Posted on 2001-07-29
9
144 Views
Last Modified: 2010-05-02
I have an app which generates a rather complex printed page, consisting of a lot of "line(xa,ya)-(xb,yb)", and a lot of "CurrentX, CurrentY, go there and print some text with specified font size" stuff.  It works just fine.

Question: Is there any way to "print to a file", so that I can send that file to the publisher, and have her print it at her end?

The VB printer object is a very different thing from a file, so at first, I don't see that this can be done.  When printing, you are sending your stuff though a printer driver.  How can a created file do that?

Would it help if I knew exactly what printer is being used by the recipient?

Could I open a Word document within my VB application, print to it, then send that?  This is the best I can think of.  How do I open a Word document from a VB app, and print to it?

I thought of using VideoSoft's printer object.  I'm having some trouble obtaining an e-mail address for them to which I could address this question.  Anyone know what that e-mail address is?

I appreciate any comments.
-- Norm
0
Comment
Question by:posnorm
9 Comments
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
Check this place out it may be able help;

http://www.planetpdf.com/mainpage.asp?webpageid=550&TBToolID=1485




Cheers
Marcus
0
 
LVL 5

Expert Comment

by:KDivad
Comment Utility
I usually generate an html file. If your lines are resulting in a table, this could be good enough.

Another option is to print to a picturebox. You can then save as a bmp, zip it up nice and small and send it.
0
 
LVL 17

Expert Comment

by:inthedark
Comment Utility
xSinbad is it possible to use this software without paying the $299 cost at http://www.fytek.com?

0
 
LVL 3

Expert Comment

by:gajendra
Comment Utility
Open Start/Settings/Printer

Install a new printer for your device and store the port option to FILE.

Next time print with this printer whenever you want to print to a file. A pop-up file ask you for the file name.

Hope this helps.

Gajendra.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
Comment Utility
If this is going to a publisher, I would suggest that you install a postscript printer driver and use gajendra's suggestion of setting the port to FILE:. The reason for using postscript is that it is most likely that your publisher will have a ps compatible printer rather than whatever you have currently.
0
 
LVL 8

Expert Comment

by:DennisBorg
Comment Utility
I believe you can also get a printer driver for Adobe Acrobat, which would generate a pdf file of your output. Then you can send off the pdf file to whomever.

0
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
You can Dennis, though I don't think you can get it without buying the whole acrobat product. If you use postscript output you can use adobe's website to convert this to pdf, though this isn't a great solution if you have to do a lot of this. The full acrobat product also comes with a distiller product which can watch specified folders for new postscript files and automatically convert them to pdf. This is what I generally use.
0
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
It look like there are many cheaper options on the site as well.
http://www.planetpdf.com/mainpage.asp?webpageid=549&TBCategoryID=6
0
 

Author Comment

by:posnorm
Comment Utility
Wow!  Thanks to everyone.  I do wish there was a way to divide the points.

Bit map:  A bit map for a full 8.5x11 page is mighty big!  On the other hand, by the nature of what is on it, it would probably zip up quite nicely.

Postscript: I think this is the best way to go.  In fact, years ago, I wrote the first versions of this product using Postscript for the printing.  The target printer does not have to be a Postscript printer, if you have a Postscript interpreter, such as "Goscript".  The VB program does all the coordinate computation for line drawing and text placement, and writes Postscript commands to a plain text file.  The recipient just feeds that file to a Postscript printer, or interpreter.

I'll investigate the URL's others have suggested.  I like to learn something.
Thanks to everyone again. -- Norm
0

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.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 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

9 Experts available now in Live!

Get 1:1 Help Now