×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VB6 -Printing

VB6 -Printing

VB6 -Printing

(OP)
I have made a software where there is printing option.When we view the printable report, It is OK.It displays as I wish.Since there is no printer connected with my computer,I saved the report in a file.Then when I open this file(it is in text format) the alignment is different from what was in original. So I think If I could convert the report in to PDF format,the report will be unchanged as I wish.Is there any way to convert the VB6 report to PDF format through the programme itself. Please help.

RE: VB6 -Printing

"this file(it is in text format)" - so you create a text file and that is your 'report'?
"When we view the printable report, It is OK.It displays as I wish" - how do you 'view' this report? What do you use to view it?
"when I open this file" - in what? Notepad? Word? Excel?

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson

RE: VB6 -Printing

(OP)
I created report using data environment and data report.When I view this report it is OK.Since I have no printer attached I have to save this report in a separate folder, and I have to save it in .txt,.html etc format.Then I saved in .txt format.Here the problem arises.

RE: VB6 -Printing

When you open your txt 'report', what do you use to open it? Notepad?
If so, what Font do you use in your Notepad?
If the text in your txt 'report' does not align, try setting it to a fixed length font, like Courier or Courier New

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson

RE: VB6 -Printing

On Woindows 10 you should have Microsofdt's Print to PDF feature (thisn pretends to be a printer, but outputs PDFs). So just select 'Microsoft Print to PDF' as ypur printer. If it is not available then you can reenable it via Turn Windows features on or off


RE: VB6 -Printing

(OP)
Mine is windows 7 ,where there is no Microsoft print to PDF

RE: VB6 -Printing

(OP)
Again regarding the above printing report:I could not solve the above problem. At the same time I met with another problem.My software otherwise(report alignment mistake)works well in VB6 environment.
But when made a set up package and tried in another computer having no VB6.It works except the report.When I click for print report the following error message is displayed
"Runtime error-713
Application-defined or object defined error"
and the programme is quitting .

Can Any body help me

RE: VB6 -Printing

I presume you are using the included VB6 packager rather than a 3rd party tool. There's a bug - it doesn't have any dependencies for the necessary Data Report runtime DLL. it's a known bug, and one that Microsoft used to have a knowledgebase article about, but have retired since VB6 is no longer under any form of support. Fortunately there are those on the internet who keep some of these things alive, so I suggest you have a look at https://jeffpar.github.io/kbarchive/kb/248/Q248055...



RE: VB6 -Printing

>there is no Microsoft print to PDF

If you do really want a PDF capability then, consider CutePDF Writer

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close