cancel
Showing results for 
Search instead for 
Did you mean: 

Save an old RPT-File in a new Version by command line?

Former Member
0 Kudos

Hello,

I have several (more than 100.000) RPT-Files which were generated in Crystal Reports Version 8.5.
Now I have Crystal Reports 2013 and I want to update those files to the new version or to open the rpt-file and save it as a pdf-file.

Is this possible by executing CRViewer.exe through command line or is there a VB.NET-Script which opens the file and saves it as a PDF-File?

Thanks for your answers!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

some Update on this case.

My software developer wrote me a small program which reads all rpt-files from one directory and exports this files to a pdf. This works for several files in the directory but then the application crashes

After a few tries the application seems to crash always after 75 files. When I restart the application it exports 75 files and then crashes again. It doesn`t seem to depend on the rpt-file because I deleted already exported files and started the application again with the next file. Then this file is exported correctly.....and the other 74 files also. But the crash occurs after the 75th file.

In the eventlog I get the following error:

Anwendung: RPTToPDF.exe

Frameworkversion: v4.0.30319

Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.

Ausnahmeinformationen: System.Runtime.InteropServices.COMException

   bei CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(System.Object ByRef, Int32)

   bei CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(System.Object ByRef, Int32)

   bei CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

Ausnahmeinformationen: CrystalDecisions.Shared.CrystalReportsException

   bei CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

   bei CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String, CrystalDecisions.Shared.OpenReportMethod, Int16)

   bei CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(System.String)

   bei RPTToPDF.MainWindow.btnConvert_Click(System.Object, System.Windows.RoutedEventArgs)

   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

   bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)

   bei System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)

   bei System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)

   bei System.Windows.Controls.Primitives.ButtonBase.OnClick()

   bei System.Windows.Controls.Button.OnClick()

   bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)

   bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)

   bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)

   bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)

   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

   bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)

   bei System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)

   bei System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)

   bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)

   bei System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)

   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)

   bei System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)

   bei System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)

   bei System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)

   bei System.Windows.Input.InputManager.ProcessStagingArea()

   bei System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)

   bei System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)

   bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)

   bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)

   bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

   bei MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)

   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

   bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)

   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

   bei MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)

   bei System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)

   bei System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)

   bei System.Windows.Application.RunDispatcher(System.Object)

   bei System.Windows.Application.RunInternal(System.Windows.Window)

   bei System.Windows.Application.Run(System.Windows.Window)

   bei System.Windows.Application.Run()

   bei RPTToPDF.Application.Main()


I read about this error and checked if there are missing privileges but I have all privileges on the used directorys. Do you have an idea what the problem is? We are using the newest SP16 of the crystal reports runtime for visual studio.

Regards!