Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 APR 2003 01:30:51PM STEVEN L BELL wrote:

Hi All,

I've taken OIPI_EXAMPLE2 and changed it to create a form and fill

it in with fields from a record read into an entry form. At the

bottom of my entry form, is a button(Print AR). This is where my code

is. The user clicks the button and the filled in form comes up in print preview. They click print and Presto the AR is printed. This is working very well. AR=Action Request.

What I'm tring to do now is print a BMP file onto the upper left corner of my form. This is where I get a BMP Error. I've coded it just as OIPI_EXAMPLE2 does it. I thought mabey it could'nt print it to the screen in print preview so I just clicked OK on the error msg.

Then I clicked print and it just printed with no BMP. The BMP file is

in the same folder as all the other files for this OI system.

Any one have an idea what's wrong.

If x is less than 0 does this mean it couldn't find the BMP file?

x=Set_Printer("BMP","pot.bmp", 0:@FM:-0.75:@FM:0.5:@FM:0.5, 0, 1)

if x < 0 then

x=msg("", "BMP Error")

end

Steve Bell

PS pot.bmp=The Lottery Pot of Gold logo.


At 03 APR 2003 03:59PM Oystein Reigem wrote:

Steven,

I've coded it just as OIPI_EXAMPLE2 does it.

I can see the BMP parameters are the same as in the example. But what about the MARGIN parameters? If you have a smaller top margin than the example, the bitmap, with it's negative y value (-0.75), might end up beyond the edge of the paper. I don't know if that might cause an error.

If x is less than 0 does this mean it couldn't find the BMP file?

What is the value of x? It's an error code that might tell more about the problem. You can look up the error codes in the OIPI help file. Look in the Advanced Topics chapter. (As if only experts make errors… :-) )

Finally - I think I've always used an absolute path for the image files I've printed with OIPI. I agree the docs say you can have a relative path, but it can't hurt to try with an absolute path:

Drive() : "/" : "pot.bmp". (Drive() is the path to where your OpenInsight resides, which is the folder where you say you've put your bitmap file.)

Finally (cross-my-heart-and-hope-to-die) you might try with a different image file, just in case OIPI doesn't like your pot bitmap. E.g, try BMPS/CLOCK.BMP.

- Oystein -


At 03 APR 2003 04:32PM STEVEN L BELL wrote:

Thanks Oystein,

x=-2

I found in the error codes what this means.

Check this posting later and I'll let you know if I get lucky.


At 04 APR 2003 11:05AM STEVEN L BELL wrote:

Oystein,

Thanks for your help. Things are working good now. I'm working on size and water mark shade now. This OIPI stuff is very useful.

Until next time,

Steve Bell

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/9c5c5d6b07019ccb85256cfd00603585.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1