There is no printer output when using the PrintOut method
I have a VB6 app with CR XI, and a customer found a situation that when printing a report directly to the printer using the PrintOut method, there is no printer output or error message.
Some reports using the same code print normally, but a report that is preceded by another print call, presents this behavior.
And when the output is directed to the screen, we can see the report.
Could someone give me an idea of what is the problem?
Thanks,
Isis
SP - Brazil
The code used is below:
Set rpt = applic.OpenReport(App.Path & "SEFoto" + TipoRPT + ".rpt")
rpt.FormulaSyntax = crCrystalSyntaxFormula
rpt.FormulaFields.GetItemByName("Empresa").Text = "'" + Company + "'"
rpt.FormulaFields.GetItemByName("Idioma").Text = "'" + Idioma + "'"
rpt.FormulaFields.GetItemByName("Versao").Text = "'" + Versao + "'"
' ... Some lines to compose the selection formula
rpt.RecordSelectionFormula = Cond
' To evaluate the image length:
Arq = rsTMP3!FT_Arquivo
ImageScaling = FatorDeReducao(Arq, "F")
' To reduce the image length:
AchouOLE = False
For Each oSection In rpt.Sections
For Each oObject In oSection.ReportObjects
If oObject.Name = "PictureFoto" Then
Set oOleObject = oObject
AchouOLE = True
Exit For
End If
Next oObject
If AchouOLE Then Exit For
Next oSection
With oOleObject
.Suppress = True
.XScaling = ImageScaling ' 0.5 = 50%, 1 = 100%
.YScaling = ImageScaling
.Suppress = False
End With
Aguarde.Show 1
If DestinoRel = 9 Or DestinoRel = 1 Then ' Padrão ou impressora
rpt.PrintOut True ' <<<---- Here using true or false nothing happens
Else
PrintRPTtela rpt, "Fotos" ' <<<--- Here it works fine
End If
Hi Isis,
Not sure if you have applied any service Packs to CR? If please do so and test again. Then you can upgrade to CR XI R2 for free, use your XI Keycode and download Service Pack 4 from this link:
https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
You'll find the distribution files for your app also from that same download area.
If you don't want to upgrade to XI R2 then download all patches from XI and test again. This issues rings a bell that it may have been fixed.
Thank you
Don
Similar Messages
-
Disable print output when using bapi BAPI_GOODSMVT_CREATE
Hello,
I am using BAPI BAPI_GOODSMVT_CREATE to post material documents in our programs.
I wish to prevent the print output of the documents created by the BAPI.
Meaning - when the user post good movement using MIGO, there will be a printout of the movement, but if the movement is created using BAPI_GOODSMVT_CREATE, no output will be printed.
I have tried sending blank values in fields VER_GR_GI_SLIP & VER_GR_GI_SLIPX in GOODSMVT_HEADER structure, but to no avail.
Is there a way to disable printing ONLY when using the BAPI?
Thank you very much.Hi,
We cant restrict the print preview or print out of the material document. Once the condition record has maintianed for the material document, it ll applicable for all the material doc . It would be manual Gr or BAPI GR.
In your case Print is coming automatically or user is taking the print !!
Regards,
Dhanush. -
Noise on audio output when using the power adapter
I'm a musician and use my mid-2007 MBP 15" in my live rig. When I use the power adapter, I hear a buzz, sometimes accompanied by a slightly louder buzz that cycles on & off about 1x/second. There are a few weird things going on here:
1. The buzz does not happen all the time. That leads me to think it may be noise in the AC line that the adapter is plugged into.
2. The noise is heard when I use both the built-in audio output AND an external USB audio interface.
In any case, when I disconnect the power adapter and run my MBP on battery, the noise goes away completely. I can probably do this on most gigs, but I'm a little nervous since I run a FW drive, an external USB audio interface, and my midi keyboard (powered by USB) so I am putting a little heavier than usual load on the MBP's battery.
As I said, this may be a noisy AC line. Another guess is that it's the PMU inducing noise into the audio circuitry. I'm hoping a simple AC line filter can help me but I thought I would ask here first in case anyone else has dealt with this. TIA for any help!I had a similar problem and fixed it with a $5 universal travel adapter. Yours might be different but here's my situation. Try it for little cost and see if it works.
I'm also a muso with an iMac running external KRK speakers via USB Mbox2. Previously I had a Macbook Pro and the same audio problem. I've been putting up with a very low volume, high pitch noise until now. I simply plugged the Mac power cord into a universal travel adapter which then goes into the wall. For Aussie users there is an adapter on ebay that will allow a 3 pin Aussie plug to go into female side and has a two pin Aussie male on the other. For US users you can probably get the same although there is a 59c product that will do the trick called a ground lift adapter. Applecare actually agreed this was the best fix and confirmed there would be no problems with power supply or Mac performance. What a gem ! God knows I've looked into all kinds of alternatives that could have cost hundreds instead of $5. -
HP 1536 printing problem when using the charger
On printer, scan HP 1536, when I print manualy the copy is perfect.But when I use the charger, I have two vertical lines on the copy.Somebody can help me to solve this problem.thank you in advance
Take a look at this link from HP. Take a good look at the ADF Glass strip for any foreign matter.
-
Forms 6i prints ugly when using the Forms print command from the menu
When we use the Oracle Forms print built-in to print the screen-shots, the print-out turns out to be ugly with lots of dots all over.
We are using Forms 6i (6.0.8.11.3) running on 9iAS on Windows 2000. The version of JInitiator we are using is 1.1.7.31. The forms open up in a separate frame.
The interesting thing is when we print from a Windows 2000 machine, the screen-prints are OK. But they are messed up when we use a windows 98/95 machine.
Any suggestions folks? ThanksCraig Bagley1 wrote:
Any clues? I don't find anything in the Finder Help files to explain the Print command's use.
If in the Finder I pull down the "Help" menu and type "Print" in the "Search" box, I see one "Menu Items" entry and five "Help Topics". If I click on the one for "Printing a closed document", it shows information that discusses printing one document at a time. I don't know if it's possible to print more than one document that way.
Try this: Open the "Print & Fax" panel of System Preferences. Drag the printer's icon from the list on the left onto your Desktop. The result will be an icon that is an alias for the printer. Now try dragging several documents onto that icon. -
Why are there CORBA error messages -- COMM_FAILURE when using the orb obj?
Hi Guys,
I followed the tutorial http://download.oracle.com/javase/6/docs/technotes/guides/idl/GShome.html
compiled and run the code. Everything works fine however whenever I use the ORB orb object I get the following message
both in my Naming Service and the HelloServer output:
2010-12-10 12:35:46.505 FINE Transport to 127.0.1.1:44100: stream closed on read < 0
2010-12-10 12:35:46.506 FINE ServerGIOPConnection to 127.0.1.1:44100 (ec4a87): getMessage() -- COMM_FAILURE
2010-12-10 12:35:46.507 FINE ServerGIOPConnection to 127.0.1.1:44100 (ec4a87): streamClosed()
2010-12-10 12:35:46.508 FINE ServerGIOPConnection to 127.0.1.1:44100 (ec4a87): close()
Why is this happening?
I have also installed jacorb and added it to my class path and run the examples with:
jaco -Djacorb.config.dir=. -DORBid=HelloClient HelloServer
ns -Djacorb.naming.ior_filename=/home/zorg/Project/Java/CORBA/NameService/NS_Ref
jaco -Djacorb.config.dir=. -DORBid=HelloClient HelloClient
I have included the code from the tutorial for convinience:
// HelloServer.java
// Copyright and License
import HelloApp.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CORBA.*;
import org.omg.PortableServer.*;
import org.omg.PortableServer.POA;
import java.util.Properties;
class HelloImpl extends HelloPOA {
private ORB orb;
public void setORB(ORB orb_val) {
orb = orb_val;
// implement sayHello() method
public String sayHello() {
return "\nHello world !!\n";
// implement shutdown() method
public void shutdown() {
orb.shutdown(false);
public class HelloServer {
public static void main(String args[]) {
try{
// create and initialize the ORB
ORB orb = ORB.init(args, null);
// get reference to rootpoa & activate the POAManager
POA rootpoa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
rootpoa.the_POAManager().activate();
// create servant and register it with the ORB
HelloImpl helloImpl = new HelloImpl();
helloImpl.setORB(orb);
// get object reference from the servant
org.omg.CORBA.Object ref = rootpoa.servant_to_reference(helloImpl);
Hello href = HelloHelper.narrow(ref);
// get the root naming context
org.omg.CORBA.Object objRef =
orb.resolve_initial_references("NameService");
// Use NamingContextExt which is part of the Interoperable
// Naming Service (INS) specification.
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
// bind the Object Reference in Naming
String name = "Hello";
NameComponent path[] = ncRef.to_name( name );
ncRef.rebind(path, href);
System.out.println("HelloServer ready and waiting ...");
// wait for invocations from clients
orb.run();
catch (Exception e) {
System.err.println("ERROR: " + e);
e.printStackTrace(System.out);
System.out.println("HelloServer Exiting ...");
// Copyright and License
import HelloApp.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CORBA.*;
public class HelloClient
static Hello helloImpl;
public static void main(String args[])
try{
// create and initialize the ORB
ORB orb = ORB.init(args, null);
// get the root naming context
org.omg.CORBA.Object objRef =
orb.resolve_initial_references("NameService");
// Use NamingContextExt instead of NamingContext. This is
// part of the Interoperable naming Service.
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
// resolve the Object Reference in Naming
String name = "Hello";
helloImpl = HelloHelper.narrow(ncRef.resolve_str(name));
System.out.println("Obtained a handle on server object: " + helloImpl);
System.out.println(helloImpl.sayHello());
helloImpl.shutdown();
} catch (Exception e) {
System.out.println("ERROR : " + e) ;
e.printStackTrace(System.out);
}Edited by: 819887 on 10-Dec-2010 04:51
Edited by: 819887 on 10-Dec-2010 04:58Figure out the actual problem is when the naming service is resolving the name on line:
helloImpl = HelloHelper.narrow(ncRef.resolve_str(name)); -
CR2008: parameters ignored when using the PrintToPrinter method
Hi all,
Currently I'm using Crystal Reports in all my add-ons and my algorithm is has follows:
- Create a New Report object;
- Load the Reports;
- Set the reports Parameters and SelectionFormula;
- Set the server/database connection info and login into every table;
- Load Form OR Send to Printer
- Load Form procedure:
- Create a New Windows Form with a ReportViewer control;
- Set the ReportViewer's ReportSource;
- Invoke the Refresh method of the ReportViewer control;
- Invoke the ShowDialog method of the Report object.
- Send To Printer procedure
- Invoke the PrintToPrinter method of the Report object...
When I use the Load Form procedure, everything works has it should: the SelectionFormula filters the correct records and the Parameters hide/show the fields that they are supposed to.
If I use the Send To Printer procedure, the SelectionFormula works correctly but some Parameters are ignored. I've checked the object properties at runtime, and all the parameters I define are correct...
My question is: is there some sort of Refresh method that I can call before calling the PrintToPrinter method that forces the report to check the parameter fields values? Or am I doing something wrong?
My code is posted bellow.
Thanks in advanced,
Regards,
Vítor Vieira' procedure that creates a new ConnectionInfo object with the login credentials to the SQL server.
Private Sub SetDBConnection()
Try
rptConnectionInfo = New ConnectionInfo()
rptConnectionInfo.DatabaseName = OONE_CompanyDB
rptConnectionInfo.UserID = OONE_CompanySQLUserId
rptConnectionInfo.Password = OONE_CompanySQLPass
rptConnectionInfo.ServerName = OONE_CompanyServer
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("Error(SetDBConnection): " & ex.ToString)
End Try
End Sub
''' procedure that creates a new ReportDocument object
Private Sub SetReportDocument()
Try
rptDocument = New ReportDocument
rptDocument.Load(rptPath)
SetParameters()
rptDocument.DataDefinition.RecordSelectionFormula = SelectionString
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("Error(SetReportDocument): " & ex.ToString)
End Try
End Sub
' procedure that makes the login to the table in the ReportDocument object
Private Sub SetDBLogonForReport()
Try
Dim myTables As Tables = rptDocument.Database.Tables
Dim myTableLogonInfo As TableLogOnInfo
For Each myTable As Table In myTables
myTableLogonInfo = myTable.LogOnInfo
myTableLogonInfo.ConnectionInfo = rptConnectionInfo
myTable.ApplyLogOnInfo(myTableLogonInfo)
Next
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("Error(SetDBLogonForReport): " & ex.ToString)
End Try
End Sub
' procedure that loads a windows form with the report
Private Sub SetCrystalForm(ByRef Titulo As String)
Try
rptCrystalForm = New CrystalForm()
rptCrystalForm.Text = Titulo
rptCrystalForm.oCrystalReportViewer.ReportSource = rptDocument
rptCrystalForm.TopMost = True
rptCrystalForm.oCrystalReportViewer.Refresh()
If rptSendToPrinter Then
rptCrystalForm.oCrystalReportViewer.PrintReport()
Else
rptCrystalForm.ShowDialog()
End If
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("Error(SetCrystalForm): " & ex.ToString)
Finally
ReleaseMemory()
End Try
End Sub
' Send the report directly to a printer without showing it.
Private Sub SendReportToPrinter()
Try
rptDocument.PrintToPrinter(rptPageSettings.PrinterSettings, rptPageSettings, False)
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("Error(SendReportToPrinter): " & ex.ToString)
Finally
ReleaseMemory()
End Try
End Sub
' Procedure that releases memory.
Private Sub ReleaseMemory()
Try
rptParameterField = Nothing
For Each oTable As Table In rptDocument.Database.Tables
oTable.Dispose()
Next
If rptSendToPrinter Then
rptPageSettings.PrinterSettings = Nothing
rptPageSettings = Nothing
End If
rptConnectionInfo = Nothing
rptDocument.Database.Tables.Dispose()
rptDocument.Database.Tables.Reset()
rptDocument.Database.Dispose()
rptDocument.Close()
rptDocument.Dispose()
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("ReleaseMemory: " & ex.ToString)
End Try
End Sub -
I am using Adobe XI Pro and in various parts of the document there is brown / biege lettering when on the document it shows as black. My printer guy has been in and checked it out top to bottom and that part is fine. I have tried to print the same document and it comes out fine. Any ideas ? Using Windows 7 Service Pack 1
Sorry my bad. I have tried to print the same document on another printer and all the formatting is fine.
-
PDF: Unable to print a document as PDF from APEX when using the BI Publishe
Hi,
From an APEX application, I am unable to print a document in a PDF format when using the Oracle BI Publisher.\
Here is the configuration:
1) Server A is W2K3 and hosts the Oracle BI Publisher server, with IP address ip01.
2) Server B is a OEL5.2 and hosts the database server of the APEX application, with IP address ip02.
3) Machine C is a W7 desktop from which through an URL both the APEX applicationn and the BI server are accessed, with IP address ip03.
4) The APEX application is configured with the following to use the Oracle BI Publisher:
- Printer server: Advanced (requires Oracle BI Publisher)
- Printer server protocol: HTTP
- Printer server host address: ip01
- Printer server port: 9704
- Printer server script: /xmlpserver/convert
- Network services are enabled (at least I did get any warning/error message)
From C, I access the the APEX application through its URL, if I try to download a page by selecting PDF in the download section of the interative report section for that page, I am unable to open if and get the error:
<file>. pdf file can not be opened because the file type is not supported or because it is damaged (because, for example as an e-mail attachment is not sent and correctly decoded)
Yet, still from C, I am able to open any other PDF document.
The same way, still from C, acessing the APEX application through its URL, I have a query report defined with a PDF output format. Then, when I test the report (Test Report in the Report query) for that query, I get the error:
ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
At first sight this could be a wong entry in the priinter configuration for APEX. But with this address, through the URL I can log in to the Oracle BI Publisher server.
Does someone has an idea what the problem could be?
Thanks for any tips.How are you trying to print to pdf?
Don't go via PostScript or Acrobat Distiller, which are old deprecated technology.
You use:
Menu > File > Print > PDF (button bottom left) > Save as PDF…
Peter -
HP LaserJet 400 MFP M425dn does not print 1/4" of the page when using the feeder
Hello,
When using the feeder to make a copy I lose about 1/4" of my copy along one side.
We copy a lot of full page sheets with little or no margins.
Any suggestions on how to correct this?
Thank youMost (if not all) commonly available laser printers have 'unprintable margins' on each edge.
On most LaserJet printers, these margins are about 4 mm (0.167"), although on some devices I believe that smaller unprintable area margins (of about 2 mm) can be selected when printing (although possibly not when copying).
When printing with PCL5 drivers, there is also the minimum logical page margin to be taken into account - this is about 6 mm (0.24") by default, although the printing options mentioned above (on some models) can reduce this slightly.
See also http://h30434.www3.hp.com/t5/Other-Printing-Questions/printable-area-cm6030/m-p/4863083/ -
is there a capability to save/export the new airport 2TB time capsule settings file when using the iphone/ipad airport utility. set-up wasn't a problem but the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.
the "file" button does not exist on the latest airport utility app v6.3 to save the configuration file.
Sounds like you are a bit confused with version numbers.
Latest AirPort Utility version for the iPhone / iPad is 1.3.3. There is no option or capability to export/import settings on the iOS version(s) of AirPort Utility.....although you could take a series of screen shots and save them for future reference.
AirPort Utility 6.3.x is found on a Mac.....not on iPhone / iPad. Export and Import options are found under the File menu in 6.3.x. -
Hello.
A few nights ago, my picky client finally upgraded his iPhone 4S' iOS 6 to iOS 7. He doesn't like the blurred background wallpaper image when using the phone feature (e.g., calling and talking). Is there a way to disable this new visual effect like in iOS 6? I am pretty sure this is by design by Apple.
Thank you in advance.sberman wrote:
I'm not completely sure I understand, but ...
Might Settings > General > Accessibility > Reduce Motion = "On" do what the customer wants?
I will tell him about that, but I don't think that would be it if that is related to animation.
We're talking about the wallpaper background that get blurry during the phone screens like http://www.tekrevue.com/wp-content/uploads/2013/09/20130923_ios7emergencycallfla w.jpg (left side) and http://i.i.cbsi.com/cnwk.1d/i/tim2/2013/09/20/ChangingYourTheme.png ... You can see there are background images that got blurred out. -
I like to be able to navigate backwards and forwards without having to scroll down and find where I was previously. In Firefox Four, when using the forwards and back buttons, the page will automatically return to the top of the page. Is there any way to change this setting in Firefox Four to prevent it from doing that?
Thanks for the response. No Time Machine, but I probably have a backup from a few months ago on an external hard drive. :/ I guess it'd have useful history, but not if it overwrote the last 3 months or so of Awesome Bar, that might not be so great.
-
When using the built in web server, is there a way to specify a different
When using the built in web server, is there a way to specify a different error handler when you try to access a NON .CFM file? Right now I get the standard:
java.io.FileNotFoundException: filename.ext
Is there any setting to override this and direct the message to your own .cfm template? The missing template handler in the CF Admin work only for .cfm files.
ThxThe in-built web server for ColdFusion 8 is JRun. I am on ColdFusion 10, however, and so cannot offer hands-on advice. (CF10 replaced JRun with Tomcat.)
My guess is that you have to modify the file {CF_ROOT}/WEB-INF/web.xml. Don't forget to create a back-up first!
You may then proceed as follows.
1) In the ColdFusion root (CF_ROOT), create the file myCustomFileNotFound.cfm. Give it some content, like
My custom File Not Found page. Current time: <cfoutput>#now()#</cfoutput>
2) Open the file {CF_ROOT}/WEB-INF/web.xml in a text editor. Add the following error-handling specification just before the end tag </web-app>:
<error-page>
<error-code>404</error-code>
<location>/myCustomFileNotFound.cfm</location>
</error-page>
Save the file web.xml.
3) Restart ColdFusion. Test by browsing to a URL requesting filename.ext -
When using the "Fill & Sign PDF" feature, is there a way to stretch to size the text box on a specific area of the page...instead of the text box going on in one straight long line....? I'm not seeing there's an option or ability to do so, just wanting to confirm.
Improving the handling of multiple line text fields is in our plans, but for now, you will have to add manual carriage returns (Enter).
Thanks,
Josh
Maybe you are looking for
-
Create a new calendar in mountain lion
How do I create a brand new calendar for someone else using mountain lion?
-
[JS CS3] Referencing a missing font in a paragraph style
I'm stuck on trying to figure out how to reference a font name in a paragraph style if the font is missing. I've got:<br /><br />for (myCounter=0; myCounter<app.documents.item(0).paragraphStyles.length; myCounter ++) {<br /> myParagraphStyle=app.do
-
How do i save a frame on safari??
im looking to save a frame off an ebay auction for security purposes. anyone know how to do that? thanks a bunch
-
How to create material(mm01) through function module or bapi
Hi, this is kiran iam sap fresher.
-
Logic pro x splitting keyboard
Can anyone help me set me setup keyboard, Trying to set up so it plays strings on left side and guitar on right hand side. System logic pro X Keyboard m audio keystudio Tried looking on YouTube: cheers mark