Friday, March 9, 2012
DeviceInfo issue...
DeviceInfo parameter? I am passing the deviceinfo parameter as below :
result = rs.Render(Me._reportPath, Me._renderingFormat, Nothing, _
"<DeviceInfo><HTMLFragment>True</HTMLFragment><JavaScript>False</JavaScript>
<Section>1</Section><Toolbar>True</Toolbar><Zoom>75</Zoom></DeviceInfo>", _
Me._parameters, Nothing, Nothing, encoding, mime, history, warnings,
streamsId)
The only child element that really works into DeviceInfo element is the
Section parameter. The toolbar parameter I already know that doesn't work
within render method of RS web service. HTMLFragment, Javascript and Zoom
elements wouldn't have to work properly?
I am asking that because I am getting a Javascript error when my report
render. So I was wondering if turning Javascript off would solve this
issue... But I don't get how...
Any help is welcome.
thanks.
----
Renato Aloi
Analista Programador
J&W Informática Ltda.
+55 11 30406675Nevermind... I get rid off Toolbar element and it is working now.
[]s
Renato
"Renato Aloi" <aloi@.jew.com.br> escreveu na mensagem
news:%23ihP1ZgiEHA.712@.TK2MSFTNGP09.phx.gbl...
> Did anyone have problems using HTMLFragment or JavaScript element within
> DeviceInfo parameter? I am passing the deviceinfo parameter as below :
> result = rs.Render(Me._reportPath, Me._renderingFormat, Nothing, _
>
"<DeviceInfo><HTMLFragment>True</HTMLFragment><JavaScript>False</JavaScript>
> <Section>1</Section><Toolbar>True</Toolbar><Zoom>75</Zoom></DeviceInfo>",
_
> Me._parameters, Nothing, Nothing, encoding, mime, history, warnings,
> streamsId)
> The only child element that really works into DeviceInfo element is the
> Section parameter. The toolbar parameter I already know that doesn't work
> within render method of RS web service. HTMLFragment, Javascript and Zoom
> elements wouldn't have to work properly?
> I am asking that because I am getting a Javascript error when my report
> render. So I was wondering if turning Javascript off would solve this
> issue... But I don't get how...
> Any help is welcome.
> thanks.
> ----
> Renato Aloi
> Analista Programador
> J&W Informática Ltda.
> +55 11 30406675
>
device is ambiguous in the namespace microsoft.directx.direc3d
I have checked and double checked that I have all the necessary references and includes. Obviously I am missing something.
Thanks Dick
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D
Public Class Form1
Inherits System.Windows.Forms.Form
Dim device As Device ' Our rendering device
#Region "Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
If Disposing Then
If Not components Is Nothing Then
components.Dispose()
End If
End If
MyBase.Dispose(Disposing)
End Sub
'Required by the Windows Form Designer
#End Region
Public Function InitializeGraphics() As Boolean
Try
' Now let's setup our D3D stuff
Dim presentParams As PresentParameters = New PresentParameters()
presentParams.Windowed = True
presentParams.SwapEffect = SwapEffect.Discard
device = New Device(0, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams)
Return True
Catch
Return False
End Try
End Function
Private Sub Render()
If device Is Nothing Then
Exit Sub
End If
'Clear the backbuffer to a blue color
device.Clear(ClearFlags.Target, System.Drawing.Color.Blue, 1.0F, 0)
'Begin the scene
device.BeginScene()
' Rendering of scene objects can happen here
'End the scene
device.EndScene()
device.Present()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not InitializeGraphics() Then
MessageBox.Show("Could not initialize Direct3D. This tutorial will exit.")
Exit Sub
End If
Me.Show()
' While the form is still valid, render and process messages
Do While Me.Created
Render()
Application.DoEvents()
Loop
End Sub
End Class
This is a SQL Server forum. I think you've accidentally posted to the wrong place...Wednesday, March 7, 2012
device is ambiguous in the namespace microsoft.directx.direc3d
I have checked and double checked that I have all the necessary references and includes. Obviously I am missing something.
Thanks Dick
Imports System
Imports System.Drawing
Imports System.Windows.Forms
Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D
Public Class Form1
Inherits System.Windows.Forms.Form
Dim device As Device ' Our rendering device
#Region "Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
If Disposing Then
If Not components Is Nothing Then
components.Dispose()
End If
End If
MyBase.Dispose(Disposing)
End Sub
'Required by the Windows Form Designer
#End Region
Public Function InitializeGraphics() As Boolean
Try
' Now let's setup our D3D stuff
Dim presentParams As PresentParameters = New PresentParameters()
presentParams.Windowed = True
presentParams.SwapEffect = SwapEffect.Discard
device = New Device(0, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams)
Return True
Catch
Return False
End Try
End Function
Private Sub Render()
If device Is Nothing Then
Exit Sub
End If
'Clear the backbuffer to a blue color
device.Clear(ClearFlags.Target, System.Drawing.Color.Blue, 1.0F, 0)
'Begin the scene
device.BeginScene()
' Rendering of scene objects can happen here
'End the scene
device.EndScene()
device.Present()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not InitializeGraphics() Then
MessageBox.Show("Could not initialize Direct3D. This tutorial will exit.")
Exit Sub
End If
Me.Show()
' While the form is still valid, render and process messages
Do While Me.Created
Render()
Application.DoEvents()
Loop
End Sub
End Class
This is a SQL Server forum. I think you've accidentally posted to the wrong place...Friday, February 24, 2012
Developer installation fails - does not prompt for Disk 2!
I have tried this many times....cleaned all previous MS SQL installations...rebooted....all with the same result below.
I insert Disc 1 of the Developer edition and all is find until it gets to the main installation...then OWC fails ("Setup cannot find the files specified") although I have an open Internet connection from where it can be downloaded.
Then the main Database server and Integration services installation fails, and other components succeed. When I click the error message it says "Please insert Disc 2" - although the main installation never prompts for Disc 2 (which are the Tools I believe).
Even if I install Disc 2, the installation never succeeds - and the main componets I am interested in - Database server and Integration services - always fails.
I have used the developer edition with many operating systems OWC is not a requirement for installing it, I have to tell you installing SQL Server from CD is not good practice. You need to create a folder in your C drive and copy the contents of the CDs into that folder and your installation will complete because all your files are in one place. If you need OWC in your development environment you need to download that to the folder before running the installer. Hope this helps.