PRB: Images Are Not Exported From the Report Writer
ID: Q195835
|
The information in this article applies to:
-
Microsoft Visual Basic Enterprise Edition for Windows, version 6.0
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.
MORE INFORMATION
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.
- Put an RptImage control on the report.
- Set the picture property of the control to Image located on your
system.
- Drag the command1 object created in the DataEnvironment onto the
report.
- Add the following code to Form1:
Private Sub Form_Load()
Set DataReport1.DataSource=DataEnvironment1
DataReport1.DataMember="command1"
DataReport1.Show
End Sub
- Press the F5 key to run the program.
- Press the Export button on the Report Designer.
- When prompted for a filename, give a name for the HTML file and
click Save.
- 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.
Additional query words:
kbDSupport kbdse
Keywords : kbCtrl kbReportWriter kbVBp600 kbGrpVBDB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb