Microsoft KB Archive/195835

= PRB: Images Are Not Exported From the Report Writer =

Article ID: 195835

Article Last Modified on 1/8/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q195835



SYMPTOMS
When exporting a report with the Report Writer that contains an Image control, special characters or symbols are exported in place of the image.

This problem also occurs with Shape controls.



CAUSE
The Report Writer is not designed to export images and/or shape controls.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Create a Standard EXE project in Visual Basic. Form1 is created by default. Add a DataEnvironment to the project:

 Set the connection property to a DSN that connects to the NWIND database. Add a command object that connects to the Categories table.  Add a DataReport to the Project.</li> Put an RptImage control on the report.</li> Set the picture property of the control to Image located on your system.</li> Drag the command1 object created in the DataEnvironment onto the report.</li>  Add the following code to Form1: Private Sub Form_Load Set DataReport1.DataSource=DataEnvironment1 DataReport1.DataMember="command1" DataReport1.Show End Sub

</li> Press the F5 key to run the program.</li> Press the Export button on the Report Designer.</li> When prompted for a filename, give a name for the HTML file and click Save.</li> Open the HTML file created above from Internet Explorer. Note that image is not included in the HTML page, but rather replaced with special character or symbols.</li></ol>

Additional query words: kbDSupport kbdse

Keywords: kbreportwriter kbprb kbctrl KB195835

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.