473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Debug 424 "Object Required" when typing the report file name

1
I always get information when compiling the program. Please help me,the problem is in the file name, tough the file name is correct. this is the code which always get debug:

Expand|Select|Wrap|Line Numbers
  1. Private m_lNewKey As Long
  2. Dim m_Application As New CRAXDDRT.Application
  3. Dim m_Report As CRAXDDRT.Report
  4.  
  5. Public Sub Laporan()
  6. CRViewer1.ReportSource = m_Report
  7. CRViewer1.ViewReport
  8. End Sub
  9.  
  10. Private Sub Command1_Click()
  11. Set m_Report = Nothing
  12. Set m_Report = m_Application.OpenReport(App.Path & “ / reportdatagaji.rpt”, 1)
  13. Call Laporan
  14. End Sub
Nov 23 '12 #1
1 2206
zmbd
5,501 Expert Mod 4TB
Shot in the dark... you haven't defined what object "app" is as reference on line12 of the code block as posted in OP.
Nov 23 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jamie A. Landers | last post by:
I have a macro that runs to export a report. It dumps a report on the server in RTF format. Here's the problem that I am having. I would like for the report to have a custom file name daily, like...
1
by: MikeD | last post by:
Hi, I'm accessing a FoxPro database via ole db using Reporting Services Data Extensions and ths works fine on my local report server. However, when I deploy the report to the live report server...
1
by: Bernard Goh | last post by:
Hi All, I am newbie for ASP.NET programming and I am having this error when I tried to print a crytal report from my dotnet web application. Error Message : Invalid file name. at...
8
by: Dave G | last post by:
I know this is an old favourite but I can't find a simple answer to a simple question. I'm trying to run this: shell("c:\program files\pkware\pkzipc\pkzipc.exe -ext " & myPath & myZIPFile & "...
1
by: joyfat | last post by:
I'm writting a program for upload file to Web server first I new a file folder name Report on my Web Server and then new many sub file folder in the Report file folder WebServer -- Report ...
1
by: sukumaster | last post by:
When exporting a report to another format, say excel,PDF; the file name is always set to the report name. Our client has a requirement where whenever a user exports a report to pdf, the timestamp of...
16
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
185
by: jacob navia | last post by:
Hi We are rewriting the libc for the 64 bit version of lcc-win and we have added a new field in the FILE structure: char *FileName; fopen() will save the file name and an accessor function will...
2
by: Peter Afonin | last post by:
Hello, I'm new to Crystal reports. Recently I developed my first report, using class as a datasource, and it works OK. But when I created a second report, I started getting error: "Invalid...
0
by: nilesh tayde | last post by:
how can i pass parameter to print access report by giving parameter as Report File Name,Query,PrinterName,Number of copies to be print my code is Function fPrintRemoteReport(strMDB As...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.