Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2005, 11:11 PM
Registered User
 
Join Date: Feb 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Snapshot Viewer, Access and ADODB with vb6

Dear Sir,

I have created a VB6 Project with using of Snapshot Viewer Control(SNAPVIEW.OCX) to add into the Form1 of the VB6 Project. Then, I use the available references within the project of VB6 such as Microsoft ActiveX data Objects 2.1 Library(MSADO21.TLB) in order to open the database connection and recordset. I am intended to fetch the data from the recordset and then fill into the Snapshot Viewer Control, how can I code it to fill into it? Please help me your technical support if you know this.

With Best regards,

Chieng Sisovin


Chieng Sisovin
045, Dak Po Village, Slakram Commune, Siem Reap District, Siem Reap Province
 
Old March 22nd, 2005, 05:37 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Chieng Sisovin

As I know, You cannot open the recordest and fill the snapshot viewer.
This viewer is able to view the snapshot of the report which is exported to .snp files. (Reports which are created in the Access database). What you can do to this is, Use MS-Access automation
object and create a report in Access database. Through access automation methods you can generate .snp file on report which you have
created ( this .snp file is a hard file on the harddrive, you can see it, if you double click it it will open in snapshot viewer) and link
that file to snapshot control in the visual basic. Write this complete
code in form_load event. So you can see that report (.snp file) from
visual basic.


With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Snapshot Viewer to a PDF file Corey Access 2 February 15th, 2007 11:23 AM
Snapshot Viewer with the Database Connection in VB Chieng Sisovin Access VBA 0 March 11th, 2005 07:06 AM
Snapshot Viewer with the Database Connection in VB Chieng Sisovin Beginning VB 6 0 March 11th, 2005 07:02 AM
Snapshot Viewer, Access and ADODB with vb6 Chieng Sisovin Access 0 March 10th, 2005 11:04 PM
Snapshot Viewer with the Database Connection in VB Chieng Sisovin VB Databases Basics 0 March 9th, 2005 11:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.