Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

Print to a file

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
posnorm
Asked:
posnorm
1 Solution
 
xSinbadCommented:
Check this place out it may be able help;

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




Cheers
Marcus
0
 
KDivadCommented:
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
 
inthedarkCommented:
xSinbad is it possible to use this software without paying the $299 cost at http://www.fytek.com?

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
gajendraCommented:
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
 
TimCotteeHead of Software ServicesCommented:
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
 
DennisBorgCommented:
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
 
TimCotteeHead of Software ServicesCommented:
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
 
xSinbadCommented:
It look like there are many cheaper options on the site as well.
http://www.planetpdf.com/mainpage.asp?webpageid=549&TBCategoryID=6
0
 
posnormAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now